forked from eduidl/rust-ffi-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (18 loc) · 795 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
ARG VARIANT="bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
# [Optional] Uncomment this section to install additional packages.
RUN apt update && export DEBIAN_FRONTEND=noninteractive \
&& apt -y install --no-install-recommends llvm-dev libclang-dev cmake
USER vscode
WORKDIR /home/vscode
RUN git clone https://github.com/emscripten-core/emsdk.git \
&& cd emsdk \
&& git checkout 3.1.13 \
&& ./emsdk install 3.1.13 \
&& ./emsdk activate 3.1.13
COPY .bash_aliases .bash_aliases
ENV EMSDK /home/vscode/emsdk
ENV PATH $EMSDK/upstream/bin:$PATH
RUN cargo install wasm-pack && rustup target install wasm32-wasi
RUN curl https://wasmtime.dev/install.sh -sSf | bash