1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-11-08 17:30:10 +00:00

Update Dockerfile to golang:alpine template

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-09-22 15:27:18 +02:00
parent 031f9bddb4
commit 8930153256
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 15 additions and 5 deletions

View file

@ -1,11 +1,16 @@
FROM golang
FROM golang:alpine
MAINTAINER Knut Ahlers <knut@ahlers.me>
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
RUN go get github.com/Luzifer/password && \
go install github.com/Luzifer/password
ADD . /go/src/github.com/Luzifer/password
WORKDIR /go/src/github.com/Luzifer/password
RUN set -ex \
&& apk add --update git ca-certificates \
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
&& apk del --purge git
EXPOSE 3000
ENTRYPOINT ["/go/bin/password"]
CMD ["serve", "--port=3000"]
CMD ["--"]

View file

@ -1,4 +1,9 @@
n.n.n / 2015-07-18
==================
* Fix: Dockerfile had wrong argument usage
1.3.0 / 2015-05-29
==================