mirror of
https://github.com/actix/examples
synced 2024-11-24 23:02:59 +01:00
.. | ||
src | ||
.dockerignore | ||
Cargo.toml | ||
Dockerfile | ||
README.MD |
Docker sample
Build image
docker build -t docker_sample .
Run built image
docker run -d -p 8080:8080 docker_sample
# and the server should start instantly
curl http://localhost:8080
Running unit tests
docker build -t docker_sample:test .
docker run --rm docker_sample:test