This example shows how to compile a docker image containing the Rust binary by
using the nixpkgs-cross-overlay
facilities.
- You should have installed Nix Package Manager and
Docker
. - You should enable the Nix Flakes feature.
# Compile docker image
docker load <$(./scripts/build_docker_image.sh)
# Run docker image
docker run -it axum_example_service:latest
# Compile docker image
docker load <$(nix build ".#dockerImage" --no-link --print-out-paths)
# Run docker image
docker run -it axum_example_service:latest
MIT licensed.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, shall be licensed as MIT, without any additional terms or conditions.