env var fix

This commit is contained in:
Kwitsch 2022-09-14 17:14:55 +02:00
parent 64c92249fe
commit d2e66b8343
1 changed files with 1 additions and 2 deletions

View File

@ -35,10 +35,9 @@ WORKDIR /go/src
# add source
ADD . .
ENV GOCACHE /root/.cache/go-build/$BUILDPLATFORM
# build binary
RUN --mount=type=cache,target=/root/.cache/go-build,sharing=locked \
GOCACHE=/root/.cache/go-build/$BUILDPLATFORM \
go build \
-mod=vendor \
-tags static \