3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-24 04:02:37 +01:00
matterbridge/Dockerfile
2017-02-17 22:32:42 +01:00

12 lines
446 B
Docker

FROM alpine:edge
ENTRYPOINT ["/bin/matterbridge"]
COPY . /go/src/github.com/42wim/matterbridge
RUN apk update && apk add go git gcc musl-dev ca-certificates \
&& cd /go/src/github.com/42wim/matterbridge \
&& export GOPATH=/go \
&& go get \
&& go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \
&& rm -rf /go \
&& apk del --purge git go gcc musl-dev