2025-03-31 11:36:57 +02:00

11 lines
463 B
Docker

FROM emscripten/emsdk
RUN wget -O /tmp/wasi-stub.tar.gz https://github.com/astrale-sharp/wasm-minimal-protocol/releases/download/wasi-stub-0.2.0/wasi-stub-x86_64-unknown-linux-musl.tar.gz &&\
mkdir /tmp/wasi-stub &&\
tar -xf /tmp/wasi-stub.tar.gz -C /tmp/wasi-stub --strip-components=1 &&\
mv /tmp/wasi-stub/wasi-stub /bin/wasi-stub &&\
chmod +x /bin/wasi-stub &&\
rm -r /tmp/wasi-stub*
COPY compile.sh /bin/compile
RUN chmod +x /bin/compile