1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/docker
2022-12-21 14:49:28 +00:00
..
src restructure folders 2022-02-18 02:01:48 +00:00
.dockerignore restructure folders 2022-02-18 02:01:48 +00:00
Cargo.toml Use workspace dependencies for actix-web (#594) 2022-12-21 14:49:28 +00:00
Dockerfile restructure folders 2022-02-18 02:01:48 +00:00
README.MD restructure folders 2022-02-18 02:01:48 +00:00

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