summaryrefslogtreecommitdiffstats
path: root/library/stdarch/ci/docker/wasm32-wasi/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/ci/docker/wasm32-wasi/Dockerfile')
-rw-r--r--library/stdarch/ci/docker/wasm32-wasi/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/library/stdarch/ci/docker/wasm32-wasi/Dockerfile b/library/stdarch/ci/docker/wasm32-wasi/Dockerfile
new file mode 100644
index 000000000..3e250f8b5
--- /dev/null
+++ b/library/stdarch/ci/docker/wasm32-wasi/Dockerfile
@@ -0,0 +1,17 @@
+FROM ubuntu:20.04
+
+ENV DEBIAN_FRONTEND=noninteractive
+RUN apt-get update -y && apt-get install -y --no-install-recommends \
+ ca-certificates \
+ curl \
+ xz-utils \
+ clang
+
+RUN curl -L https://github.com/bytecodealliance/wasmtime/releases/download/v0.29.0/wasmtime-v0.29.0-x86_64-linux.tar.xz | tar xJf -
+ENV PATH=$PATH:/wasmtime-v0.29.0-x86_64-linux
+
+ENV CARGO_TARGET_WASM32_WASI_RUNNER="wasmtime \
+ --enable-simd \
+ --enable-threads \
+ --mapdir .::/checkout/target/wasm32-wasi/release/deps \
+ --"