This repo is a simple example of how to package a Rust app in a Docker container and support ENV variables (like 12-factor app)
- Docker environment and familiarity with command lines
- Clone this repo and
cd tutorial-rust-docker
docker build -t my-rust-app .
docker run --rm --name rusty my-rust-app
- prints
Hello World
docker run --rm -e RUST_DOCKER_NAME="Foo" --name rusty my-rust-app
- prints
Hello, Foo