mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 14:10:05 +00:00
Move to go1.6 for building
This commit is contained in:
parent
780fbac244
commit
dcec39ed5c
1 changed files with 14 additions and 10 deletions
24
Dockerfile
24
Dockerfile
|
@ -1,14 +1,18 @@
|
||||||
FROM alpine
|
FROM golang:alpine
|
||||||
|
|
||||||
VOLUME /data
|
MAINTAINER Knut Ahlers <knut@ahlers.me>
|
||||||
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
|
ADD . /go/src/github.com/Luzifer/cloudkeys-go
|
||||||
WORKDIR /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 \
|
RUN set -ex \
|
||||||
&& /go/bin/godep go install -ldflags "-X main.version=$(git describe --tags)" \
|
&& apk add --update git \
|
||||||
&& apk --purge del git go
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
|
||||||
|
&& apk del --purge git
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
ENTRYPOINT ["/go/bin/cloudkeys-go"]
|
||||||
|
CMD ["--storage=local:////data", "--password-salt=changeme", "--username-salt=changeme"]
|
||||||
|
|
Loading…
Reference in a new issue