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

15 lines
435 B
Docker

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