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:
parent
89d69c9809
commit
31d0ac0c7e
1 changed files with 8 additions and 7 deletions
15
Dockerfile
15
Dockerfile
|
@ -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 ["--"]
|
||||
|
|
Loading…
Reference in a new issue