diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2021-08-18 18:57:54 +0000 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2021-08-18 18:57:54 +0000 |
| commit | f2817a2f4db1eb23fb6f422b937e161324a35d54 (patch) | |
| tree | 398d97907b96573e78a3388b99cc0ee2d05d23ba /.devcontainer/Dockerfile | |
| parent | ce4994f3efaed2afbf75d58a627342bac54160db (diff) | |
Try out devcontainer.json
Diffstat (limited to '.devcontainer/Dockerfile')
| -rw-r--r-- | .devcontainer/Dockerfile | 12 |
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 |
