Merge pull request #1369 from crytic/dev-improve-m1-docker

Dockerfile: add x86_64 libc on non-intel containers
pull/1389/head
Feist Josselin 2 years ago committed by GitHub
commit 6ee3adf0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Dockerfile

@ -26,6 +26,14 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y --no-install-recommends python3-pip \
&& rm -rf /var/lib/apt/lists/*
# improve compatibility with amd64 solc in non-amd64 environments (e.g. Docker Desktop on M1 Mac)
ENV QEMU_LD_PREFIX=/usr/x86_64-linux-gnu
RUN if [ ! "$(uname -m)" = "x86_64" ]; then \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends libc6-amd64-cross \
&& rm -rf /var/lib/apt/lists/*; fi
RUN useradd -m slither
USER slither

Loading…
Cancel
Save