@@ -2,47 +2,23 @@ FROM docker.io/library/fedora:41
22
33ARG TARGETARCH
44
5-
65ENV CC=clang
76
8- RUN dnf -y --nodocs --setopt=install_weak_deps=False --disablerepo=fedora-cisco-openh264 install \
9- /usr/bin/{blurb,clang,curl,git,ln,tar,xz} \
10- compiler-rt \
11- # TODO: remove when Fedora version includes Python 3.14+
12- libzstd-devel \
13- 'dnf5-command(builddep)' && \
14- dnf -y --nodocs --setopt=install_weak_deps=False --disablerepo=fedora-cisco-openh264 \
15- builddep python3 && \
16- dnf -y clean all
17-
7+ # Remove a video codec repository to speed up installs
8+ RUN dnf config-manager setopt fedora-cisco-openh264.enabled=False
189
1910# Update only after consulting with WASI support maintainers (see PEP 11).
2011ENV WASI_SDK_VERSION=24
2112ENV WASI_SDK_PATH=/opt/wasi-sdk
2213
23- RUN mkdir ${WASI_SDK_PATH} && \
24- case "${TARGETARCH}" in \
25- amd64) WASI_ARCH="x86_64" ;; \
26- arm64) WASI_ARCH="arm64" ;; \
27- *) echo "Unsupported TARGETARCH: ${TARGETARCH}" && exit 1 ;; \
28- esac && \
29- curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-${WASI_ARCH}-linux.tar.gz | \
30- tar --strip-components 1 --directory ${WASI_SDK_PATH} --extract --gunzip
31-
32-
3314# Update as desired.
3415ENV WASMTIME_VERSION=33.0.0
3516ENV WASMTIME_HOME=/opt/wasmtime
3617
37- RUN mkdir --parents ${WASMTIME_HOME} && \
38- case "${TARGETARCH}" in \
39- amd64) WASMTIME_ARCH="x86_64" ;; \
40- arm64) WASMTIME_ARCH="aarch64" ;; \
41- *) echo "Unsupported TARGETARCH: ${TARGETARCH}" && exit 1 ;; \
42- esac && \
43- curl --location "https://github.com/bytecodealliance/wasmtime/releases/download/v${WASMTIME_VERSION}/wasmtime-v${WASMTIME_VERSION}-${WASMTIME_ARCH}-linux.tar.xz" | \
44- xz --decompress | \
45- tar --strip-components 1 --directory ${WASMTIME_HOME} -x && \
46- ln -s ${WASMTIME_HOME}/wasmtime /usr/local/bin
4718
19+ RUN mkdir -p /opt/cpython-devcontainer/bin
20+ COPY --chmod=755 install-builddeps.sh install-wasi.sh /opt/cpython-devcontainer/bin/
21+ RUN chmod +x /opt/cpython-devcontainer/bin/install-*.sh
4822
23+ RUN /opt/cpython-devcontainer/bin/install-builddeps.sh
24+ RUN /opt/cpython-devcontainer/bin/install-wasi.sh
0 commit comments