1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-08 22:20:05 +00:00
cloudkeys-go/Dockerfile

15 lines
463 B
Text
Raw Normal View History

FROM alpine
2015-07-29 07:01:23 +00:00
VOLUME /data
EXPOSE 3000
ENV GOPATH /go
ENTRYPOINT ["/go/bin/cloudkeys-go"]
2015-07-29 07:01:23 +00:00
CMD ["--storage=local:////data", "--password-salt=changeme", "--username-salt=changeme"]
ADD . /go/src/github.com/Luzifer/cloudkeys-go
WORKDIR /go/src/github.com/Luzifer/cloudkeys-go
RUN apk --update add go git ca-certificates \
&& go get github.com/tools/godep \
&& /go/bin/godep go install -ldflags "-X main.version=$(git describe --tags)" \
&& apk --purge del git go