1
0
mirror of https://github.com/Luzifer/mondash.git synced 2024-09-19 17:02:58 +00:00
mondash/Dockerfile

17 lines
400 B
Docker
Raw Normal View History

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