commit 9d2eb591aa24a6514789cd662fca8220027b2deb Author: Knut Ahlers Date: Tue Jan 12 13:20:04 2016 +0100 Initial version diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e54ef4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM golang + +MAINTAINER Knut Ahlers + +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"] +