Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit c0658cb

Browse files
committed
Fixed building of imgcrypt
1 parent d76a2b1 commit c0658cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/imgcrypt/Dockerfile.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ EOF
1414
WORKDIR /go/src/github.com/containerd/imgcrypt
1515
ARG name
1616
ARG version
17+
ENV CGO_ENABLED=0
1718
RUN <<EOF
1819
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/containerd/imgcrypt .
1920
sed -i -E 's/ -v / /' Makefile
2021
sed -i -E "s/ --dirty='.m' / /" Makefile
2122
make
22-
make install DESTDIR=/opt/imgcrypt
23-
EOF
24-
COPY --from=build /opt/imgcrypt/ ${prefix}${target}/
23+
make install DESTDIR="${prefix}${target}/"
24+
EOF

0 commit comments

Comments
 (0)