1- FROM --platform=linux/arm64 rockylinux:8
1+ FROM arm64v8/amazonlinux:2023
22LABEL maintainer="Lovell Fuller <npm@lovell.info>"
33
4- # Create Rocky Linux 8 (glibc 2.28 ) container suitable for building Linux ARM64v8-A binaries
4+ # Create Amazon Linux 2023 (glibc 2.34 ) container suitable for building Linux ARM64v8-A binaries
55
66# Path settings
77ENV \
88 RUSTUP_HOME="/usr/local/rustup" \
99 CARGO_HOME="/usr/local/cargo" \
10- PATH="/usr/local/cargo/bin:/opt/rh/gcc-toolset-15/root/usr/bin: $PATH"
10+ PATH="/usr/local/cargo/bin:$PATH"
1111
1212# Build dependencies
1313RUN \
1414 dnf update -y && \
15- dnf install -y epel-release && \
16- dnf config-manager --set-enabled powertools && \
1715 dnf install -y --setopt=tsflags=nodocs \
1816 autoconf \
1917 automake \
2018 bzip2 \
2119 cmake \
2220 curl-devel \
23- findutils \
24- gcc-toolset-15-gcc \
25- gcc-toolset-15-gcc-c++ \
21+ gcc \
22+ gcc-c++ \
23+ binutils \
2624 gettext \
2725 git \
2826 gperf \
2927 jq \
3028 make \
3129 openssl-devel \
3230 patch \
33- pkgconf \
34- python3.12-pip \
31+ pkgconfig \
32+ python3 \
33+ python3-pip \
3534 tar \
3635 xz \
3736 && \
@@ -42,16 +41,15 @@ RUN \
4241 --default-toolchain nightly \
4342 && \
4443 cargo install cargo-c --locked && \
45- pip3.12 install meson ninja
44+ pip3 install meson ninja tomli
4645
4746# Compiler settings
4847ENV \
49- PKG_CONFIG="aarch64-linux-gnu-pkgconf --static" \
48+ PKG_CONFIG="pkg-config --static" \
5049 PLATFORM="linux-arm64v8" \
5150 FLAGS="-march=armv8-a" \
5251 RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" \
5352 MESON="--cross-file=/root/meson.ini"
5453
5554COPY Toolchain.cmake /root/
5655COPY meson.ini /root/
57- COPY aarch64-linux-gnu-pkgconf /usr/bin
0 commit comments