2024-04-24 08:13:35 -03:00
|
|
|
FROM docker.io/library/fedora:40
|
2023-03-29 17:28:08 -03:00
|
|
|
|
|
|
|
ENV CC=clang
|
|
|
|
|
2024-03-13 22:45:33 -03:00
|
|
|
ENV WASI_SDK_VERSION=21
|
2023-03-29 17:28:08 -03:00
|
|
|
ENV WASI_SDK_PATH=/opt/wasi-sdk
|
|
|
|
|
|
|
|
ENV WASMTIME_HOME=/opt/wasmtime
|
2024-07-09 19:02:25 -03:00
|
|
|
ENV WASMTIME_VERSION=22.0.0
|
2023-03-29 17:28:08 -03:00
|
|
|
ENV WASMTIME_CPU_ARCH=x86_64
|
|
|
|
|
2023-04-24 13:12:15 -03:00
|
|
|
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \
|
|
|
|
dnf -y --nodocs --setopt=install_weak_deps=False builddep python3 && \
|
2023-03-29 17:28:08 -03:00
|
|
|
dnf -y clean all
|
|
|
|
|
|
|
|
RUN mkdir ${WASI_SDK_PATH} && \
|
|
|
|
curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-linux.tar.gz | \
|
|
|
|
tar --strip-components 1 --directory ${WASI_SDK_PATH} --extract --gunzip
|
|
|
|
|
|
|
|
RUN mkdir --parents ${WASMTIME_HOME} && \
|
|
|
|
curl --location "https://github.com/bytecodealliance/wasmtime/releases/download/v${WASMTIME_VERSION}/wasmtime-v${WASMTIME_VERSION}-${WASMTIME_CPU_ARCH}-linux.tar.xz" | \
|
|
|
|
xz --decompress | \
|
|
|
|
tar --strip-components 1 --directory ${WASMTIME_HOME} -x && \
|
|
|
|
ln -s ${WASMTIME_HOME}/wasmtime /usr/local/bin
|