mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-09 22:50:05 +00:00
14 lines
463 B
Docker
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
|