13 lines
638 B
Docker
13 lines
638 B
Docker
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
|
|
ARG VARIANT="bullseye"
|
|
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
|
|
|
|
# Include lld linker to improve build times either by using environment variable
|
|
# RUSTFLAGS="-C link-arg=-fuse-ld=lld" or with Cargo's configuration file (i.e see .cargo/config.toml).
|
|
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get -y install clang lld \
|
|
&& apt-get autoremove -y && apt-get clean -y
|
|
|
|
# Add tools for wasm development
|
|
RUN rustup target add wasm32-unknown-unknown \
|
|
&& cargo install trunk cargo-edit cargo-watch |