mirror of
https://github.com/luzifer-docker/picfit.git
synced 2024-12-30 01:41:16 +00:00
Initial version
This commit is contained in:
commit
9d2eb591aa
1 changed files with 22 additions and 0 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
FROM golang
|
||||||
|
|
||||||
|
MAINTAINER Knut Ahlers <knut@luzifer.io>
|
||||||
|
|
||||||
|
ENV VERSION master
|
||||||
|
ENV GOPATH /go:/go/src/github.com/thoas/picfit/vendor
|
||||||
|
ENV GO15VENDOREXPERIMENT 1
|
||||||
|
|
||||||
|
RUN mkdir -p /go/src/github.com/thoas \
|
||||||
|
&& git clone https://github.com/thoas/picfit.git /go/src/github.com/thoas/picfit
|
||||||
|
|
||||||
|
WORKDIR /go/src/github.com/thoas/picfit
|
||||||
|
|
||||||
|
RUN git checkout ${VERSION} \
|
||||||
|
&& go install
|
||||||
|
|
||||||
|
VOLUME ["/config"]
|
||||||
|
EXPOSE 3001/tcp
|
||||||
|
|
||||||
|
ENTRYPOINT ["/go/bin/picfit"]
|
||||||
|
CMD ["-c", "/config/config.json"]
|
||||||
|
|
Loading…
Reference in a new issue