mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 12:51:17 +00:00
Update Dockerfile to golang:alpine template
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
031f9bddb4
commit
8930153256
2 changed files with 15 additions and 5 deletions
15
Dockerfile
15
Dockerfile
|
@ -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 && \
|
ADD . /go/src/github.com/Luzifer/password
|
||||||
go install 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
|
EXPOSE 3000
|
||||||
|
|
||||||
ENTRYPOINT ["/go/bin/password"]
|
ENTRYPOINT ["/go/bin/password"]
|
||||||
CMD ["serve", "--port=3000"]
|
CMD ["--"]
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
n.n.n / 2015-07-18
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Fix: Dockerfile had wrong argument usage
|
||||||
|
|
||||||
1.3.0 / 2015-05-29
|
1.3.0 / 2015-05-29
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue