1
0
mirror of https://github.com/actix/examples synced 2024-12-05 03:01:55 +01:00
examples/docker/README.MD

23 lines
329 B
Plaintext
Raw Normal View History

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