From af543dcd05cfb5341311e2e214727e26411d2f92 Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 3 May 2021 23:47:36 +0200 Subject: Follow up to 536823ce5559b92a3224061b72bcda6010abea17 for the tgs.Dockerfile (#1448) --- tgs.Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tgs.Dockerfile b/tgs.Dockerfile index 06bbb341..f39b8218 100644 --- a/tgs.Dockerfile +++ b/tgs.Dockerfile @@ -1,15 +1,11 @@ FROM alpine AS builder -COPY . /go/src/github.com/42wim/matterbridge +COPY . /go/src/matterbridge RUN apk add \ go \ git \ - gcc \ - musl-dev \ - && 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 + && cd /go/src/matterbridge \ + && 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 \ -- cgit v1.2.3