1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-11-10 00:20:02 +00:00
mondash/Dockerfile
Knut Ahlers e63451b3c3
Meta: Update Dockerfile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-11-22 22:40:53 +01:00

16 lines
400 B
Docker

FROM golang:alpine
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
ADD . /go/src/github.com/Luzifer/mondash
WORKDIR /go/src/github.com/Luzifer/mondash
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/mondash"]
CMD ["--"]