FerryDocs

Rust

What the generated Dockerfile does for a Rust project, when you set no build or start command.

Edit on GitHub
rust:1-slim-bookwormthe build imageBinaryin /usr/local/bindebian:bookworm-slimthe run image

In the build image, Cargo fetches the dependencies.

1 / 3

A Rust build uses two images. The first image has the Rust tools and compiles the app. The second image only runs the .

The defaults

StepWhat Ferry does
Build imagerust:1-slim-bookworm
Run imagedebian:bookworm-slim
DependenciesCargo fetches them. Ferry keeps the registry and the target directory in build caches between builds.
Buildcargo build --release. Ferry installs the binary in /usr/local/bin.
StartThe binary that default-run names. If there is none, the binary of the package. If there is none, the first [[bin]] target.

On this page