1
0
mirror of https://github.com/actix/examples synced 2024-12-18 00:13:57 +01:00
examples/docker
2024-02-05 16:26:50 +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 build: update docker example to bookworm 2024-02-05 16:26:50 +00:00
Dockerfile build: update docker example to bookworm 2024-02-05 16:26:50 +00:00
README.md build: update docker example to bookworm 2024-02-05 16:26:50 +00:00

Docker sample

Build image

docker build -t actix-docker .

Run built image

docker run -d -p 8080:8080 actix-docker
# and the server should start instantly
curl http://localhost:8080

Running unit tests

docker build -t actix-docker:test .
docker run --rm actix-docker:test