Build with Rust on Amazon Linux.
541
This image is based on the official Amazon Linux images and contains tools to build Rust code. It can be used as both the build and runtime environment and is ideal for building a custom AWS Lambda runtime.
To compile, but not run your app inside the Docker instance:
$ docker run --user "$(id -u)":"$(id -g)" --volume $(PWD):/volume --rm --tty $(BUILDER) cargo build --release
This will add your current directory, as a volume, to the container, and run the command cargo build --release.
The output of the compilation will be in target/release below the current directory.
Content type
Image
Digest
Size
360.9 MB
Last updated
almost 6 years ago
docker pull ewbankkit/rust-amazonlinux:1.49.0-2.0.20201218.1