This commit is contained in:
Kwitsch 2022-09-16 17:58:07 +02:00
parent bf2f73c4fa
commit 582ad50cf5
1 changed files with 4 additions and 6 deletions

View File

@ -25,19 +25,17 @@ ADD . .
RUN --mount=type=cache,target=/go/pkg \
go generate ./...
RUN cp ./docker/*.sh /go/bin && \
chmod +x ./docker/*.sh
RUN chmod +x ./docker/*.sh && \
export GOARM=${TARGETVARIANT##*v} && \
export CC=$(./docker/getenv_cc.sh)
# . ./docker/setenv_go.sh && \
# . ./docker/setenv_cc.sh && \
# . ./docker/printenv.sh
RUN ./docker/printenv.sh
# build binary
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
export GOARM=${TARGETVARIANT##*v} && \
export CC=$(getenv_cc.sh) && \
printenv.sh && \
go build \
-tags static,osusergo,netgo \
-v \