Skip to content

Commit ad24b54

Browse files
nicholasdillegithub-actions[bot]
authored andcommitted
Fixed static build
1 parent 23c38aa commit ad24b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/acr/Dockerfile.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FROM ghcr.io/uniget-org/tools/go:latest AS go
44
FROM ghcr.io/uniget-org/tools/make:latest AS make
55

6-
FROM ghcr.io/uniget-org/images/ubuntu:22.04 AS prepare
6+
FROM ghcr.io/uniget-org/images/build-base:3.19 AS prepare
77
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
88
/etc/profile.d/ \
99
/etc/profile.d/
@@ -15,7 +15,7 @@ COPY --link --from=make / /usr/local/
1515
WORKDIR /go/src/github.com/Azure/acr-cli
1616
RUN <<EOF
1717
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/Azure/acr-cli .
18-
make -j$(nproc) binaries
18+
make -j$(nproc) binaries GO_LDFLAGS="-ldflags '-s -w -linkmode external -extldflags -static'"
1919
cp bin/acr "${prefix}/bin/"
2020

2121
"${prefix}/bin/acr" completion bash >"${prefix}/share/bash-completion/completions/acr"

0 commit comments

Comments
 (0)