This docker templates demonstrate how to use Dockerfile
for your Rust projects.
# build the image
docker build -t rust-dockerfile .
# run the app
docker run --rm -d -p 8080:8080 rust-dockerfile 8080
# successful curl to the application
curl 127.0.0.1:8080 -i
# failing curl to the application
curl 127.0.0.1:8080/something/else -i