2016-03-27 16:02:14 +00:00
|
|
|
FROM golang:alpine
|
2016-01-23 12:07:07 +00:00
|
|
|
|
2016-03-27 16:02:14 +00:00
|
|
|
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 \
|
|
|
|
&& apk add --update git \
|
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 ["--"]
|