@@ -2,47 +2,23 @@ FROM docker.io/library/fedora:41
2
2
3
3
ARG TARGETARCH
4
4
5
-
6
5
ENV CC=clang
7
6
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
18
9
19
10
# Update only after consulting with WASI support maintainers (see PEP 11).
20
11
ENV WASI_SDK_VERSION=24
21
12
ENV WASI_SDK_PATH=/opt/wasi-sdk
22
13
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
-
33
14
# Update as desired.
34
15
ENV WASMTIME_VERSION=33.0.0
35
16
ENV WASMTIME_HOME=/opt/wasmtime
36
17
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
47
18
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
48
22
23
+ RUN /opt/cpython-devcontainer/bin/install-builddeps.sh
24
+ RUN /opt/cpython-devcontainer/bin/install-wasi.sh
0 commit comments