File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
FROM ghcr.io/uniget-org/tools/go:latest AS go
4
4
FROM ghcr.io/uniget-org/tools/make:latest AS make
5
5
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
7
7
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
8
8
/etc/profile.d/ \
9
9
/etc/profile.d/
@@ -15,7 +15,7 @@ COPY --link --from=make / /usr/local/
15
15
WORKDIR /go/src/github.com/Azure/acr-cli
16
16
RUN <<EOF
17
17
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'"
19
19
cp bin/acr "${prefix}/bin/"
20
20
21
21
"${prefix}/bin/acr" completion bash >"${prefix}/share/bash-completion/completions/acr"
You can’t perform that action at this time.
0 commit comments