2016-03-27 16:02:14 +00:00
|
|
|
FROM golang:alpine
|
2016-01-23 12:07:07 +00:00
|
|
|
|
2017-11-22 21:40:53 +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
|
|
|
|
|
2016-03-27 16:02:14 +00:00
|
|
|
RUN set -ex \
|
2017-11-22 21:40:53 +00:00
|
|
|
&& 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)" \
|
2016-03-27 16:02:14 +00:00
|
|
|
&& apk del --purge git
|
|
|
|
|
|
|
|
EXPOSE 3000
|
2016-01-23 12:07:07 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/go/bin/mondash"]
|
2016-03-27 16:02:14 +00:00
|
|
|
CMD ["--"]
|