2018-09-16 12:49:26 +00:00
|
|
|
FROM golang:alpine as builder
|
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 \
|
2018-09-16 12:49:26 +00:00
|
|
|
&& apk add --update git \
|
|
|
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk --no-cache add ca-certificates
|
|
|
|
|
|
|
|
COPY --from=builder /go/bin/mondash /usr/local/bin/mondash
|
2016-03-27 16:02:14 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2016-01-23 12:07:07 +00:00
|
|
|
|
2018-09-16 12:49:26 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/mondash"]
|
2016-03-27 16:02:14 +00:00
|
|
|
CMD ["--"]
|
2018-09-16 12:49:26 +00:00
|
|
|
|
|
|
|
# vim: set ft=Dockerfile:
|