matterbridge/Dockerfile

12 lines
446 B
Docker
Raw Normal View History

2016-05-21 16:30:39 +02:00
FROM alpine:edge
ENTRYPOINT ["/bin/matterbridge"]
COPY . /go/src/github.com/42wim/matterbridge
2016-08-20 18:08:04 +02:00
RUN apk update && apk add go git gcc musl-dev ca-certificates \
2016-05-21 16:30:39 +02:00
&& cd /go/src/github.com/42wim/matterbridge \
&& export GOPATH=/go \
&& go get \
2017-02-17 22:32:42 +01:00
&& go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \
2016-05-21 16:30:39 +02:00
&& rm -rf /go \
2016-08-20 18:08:04 +02:00
&& apk del --purge git go gcc musl-dev