2015-10-28 12:47:31 +00:00
|
|
|
FROM alpine
|
2015-07-29 07:01:23 +00:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 3000
|
2015-10-28 12:47:31 +00:00
|
|
|
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"]
|
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
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
|