Skip to content

Commit

Permalink
nerdctl-full: compile runc with CGO_ENABLED=1
Browse files Browse the repository at this point in the history
For opencontainers/runc issue 3037

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Jun 24, 2021
1 parent 39a4644 commit 0a76339
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN git clone https://github.com/opencontainers/runc.git /go/src/github.com/open
WORKDIR /go/src/github.com/opencontainers/runc
RUN git checkout v${RUNC_VERSION} && \
mkdir -p /out
ENV CGO_ENABLED=1
RUN GOARCH=amd64 CC=x86_64-linux-gnu-gcc make runc && \
cp -a runc /out/runc.amd64
RUN GOARCH=arm64 CC=aarch64-linux-gnu-gcc make runc && \
Expand Down

0 comments on commit 0a76339

Please sign in to comment.