Dockerfile 514 B

12345678910111213
  1. FROM ubuntu:18.04
  2. RUN apt-get update && \
  3. apt-get install -y --no-install-recommends \
  4. gcc libc6-dev ca-certificates \
  5. gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross \
  6. binfmt-support qemu-user-static qemu-system-ppc
  7. ENV CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_LINKER=powerpc64-linux-gnu-gcc \
  8. CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_RUNNER=qemu-ppc64-static \
  9. CC_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-gcc \
  10. QEMU_LD_PREFIX=/usr/powerpc64-linux-gnu \
  11. RUST_TEST_THREADS=1