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
2015-10-28 13:47:31 +01:00

14 lines
463 B
Docker

FROM alpine
VOLUME /data
EXPOSE 3000
ENV GOPATH /go
ENTRYPOINT ["/go/bin/cloudkeys-go"]
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