matterbridge/Dockerfile
Jakub Sokołowski f32e10d8a8
add support for Status whisper protocol
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-10-08 19:23:31 +02:00

23 lines
495 B
Docker

FROM alpine AS builder
RUN apk update && apk add go git gcc musl-dev linux-headers
COPY . /go/src/github.com/42wim/matterbridge
WORKDIR /go/src/github.com/42wim/matterbridge
ENV GOPATH /go
ENV CGOENABLE 1
ENV GO111MODULE on
RUN go get
RUN go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
FROM alpine:latest
RUN apk update && apk add ca-certificates
COPY --from=builder /bin/matterbridge /bin/matterbridge
ENTRYPOINT ["/bin/matterbridge"]