4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 03:59:25 +00:00

Fix docker build

This commit is contained in:
Wim
2021-10-17 14:19:26 +02:00
parent a3a8a5769d
commit b98d56dcf6
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
FROM alpine AS builder
FROM alpine:edge AS builder
COPY . /go/src/matterbridge
RUN apk --no-cache add go git \
&& cd /go/src/matterbridge \
&& go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
&& CGO_ENABLED=0 go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
FROM alpine
RUN apk --no-cache add ca-certificates mailcap