This commit is contained in:
Kwitsch 2022-09-16 18:36:27 +02:00
parent 1dc1ec9c5c
commit c19d854268
1 changed files with 5 additions and 2 deletions

View File

@ -33,9 +33,12 @@ RUN chmod +x ./docker/*.sh && \
# . ./docker/printenv.sh
RUN ./docker/printenv.sh
# build binary
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
# --mount=target=. \
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
chmod +x ./docker/*.sh && \
export GOARM=${TARGETVARIANT##*v} && \
export CC=$(./docker/getenv_cc.sh) && \
go build \
-tags static,osusergo,netgo \
-v \