1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

build: update docker example to bookworm

This commit is contained in:
Rob Ede
2024-02-05 16:26:50 +00:00
parent a46b707c69
commit b6d60d89ab
3 changed files with 10 additions and 9 deletions

22
docker/README.md Normal file
View File

@ -0,0 +1,22 @@
# Docker sample
## Build image
```shell
docker build -t actix-docker .
```
## Run built image
```shell
docker run -d -p 8080:8080 actix-docker
# and the server should start instantly
curl http://localhost:8080
```
## Running unit tests
```shell
docker build -t actix-docker:test .
docker run --rm actix-docker:test
```