Details about the environment your app is built in
runtime
Debian-based Docker image.
stable-x86_64-unknown-linux-gnu
toolchain.
By default, the wasm32-unknown-unknown
target is installed, which enables compiling WASM frontends.
apt
packages are also installed:
clang
cmake
llvm-dev
libclang-dev
mold
protobuf-compiler
cargo-binstall
(latest)trunk
(0.19.2)SHUTTLE=true
env var is set in the builder image.
If you have build flags or env variables that need to be set during compilation, you can add them in .cargo/config.toml
(docs) and include it in your deployment. Below are some examples.
bookworm-slim
(Debian 12) with ca-certificates
and curl
installed.
shuttle_prebuild.sh
: Runs before cargo build
. Can be used to install custom build dependencies.shuttle_postbuild.sh
: Runs after cargo build
.shuttle_setup_container.sh
: Runs in the runtime image before build artifacts are copied into it. Can be used to install custom runtime dependencies.nighlty
toolchain.