1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-12-22 20:11:18 +00:00

Use golang:alpine (go1.6) for container

This commit is contained in:
Knut Ahlers 2016-03-27 18:02:14 +02:00
parent 89d69c9809
commit 31d0ac0c7e

View file

@ -1,15 +1,16 @@
FROM alpine
FROM golang:alpine
MAINTAINER Knut Ahlers <knut@luzifer.io>
ENV GOPATH /go:/go/src/github.com/Luzifer/mondash/Godeps/_workspace
EXPOSE 3000
MAINTAINER Knut Ahlers <knut@ahlers.me>
ADD . /go/src/github.com/Luzifer/mondash
WORKDIR /go/src/github.com/Luzifer/mondash
RUN apk --update add git go ca-certificates \
RUN set -ex \
&& apk add --update git \
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
&& apk del --purge go git
&& apk del --purge git
EXPOSE 3000
ENTRYPOINT ["/go/bin/mondash"]
CMD ["--"]