This commit is contained in:
Kwitsch 2022-09-16 16:17:03 +02:00
parent 5eeff33dae
commit 2e7308902e
1 changed files with 5 additions and 5 deletions

View File

@ -26,13 +26,13 @@ RUN --mount=type=cache,target=/go/pkg \
go generate ./...
RUN chmod +x ./docker/*.sh && \
./docker/setenv_go.sh && \
./docker/setenv_cc.sh && \
./docker/printenv.sh
. ./docker/setenv_go.sh && \
. ./docker/setenv_cc.sh && \
. ./docker/printenv.sh
# ,sharing=locked
# build binary
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build,sharing=locked \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
go build \
-tags static,osusergo,netgo \