aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/Dockerfile')
-rw-r--r--.devcontainer/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..3734556
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,12 @@
+FROM mcr.microsoft.com/vscode/devcontainers/rust:0-1
+
+RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
+ && apt-get -y install --no-install-recommends wabt binaryen
+RUN curl -sL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk_12.0_amd64.deb -o /tmp/wasi-sdk.deb \
+ && dpkg -i /tmp/wasi-sdk.deb \
+ && rm /tmp/wasi-sdk.deb
+RUN rustup update \
+ && rustup target add wasm32-wasi \
+ && rustup toolchain install nightly --component llvm-tools-preview
+
+ENV CC_wasm32_wasi=/opt/wasi-sdk/bin/clang