1
0
mirror of https://github.com/actix/examples synced 2024-12-01 01:24:35 +01:00
examples/docker_sample/README.MD

23 lines
356 B
Plaintext
Raw Normal View History

Build image:
```shell
docker build -t docker_sample --force-rm --no-cache -f Dockerfile .
```
Run image:
```shell
echo "== start sample_docker"
docker run -d -p 5000:5000 docker_sample &
docker ps
echo "== wait 3s for startup"
sleep 3s
echo "== curl both routes"
curl http://localhost:5000
curl http://localhost:5000/again
```