1
0
mirror of https://github.com/actix/examples synced 2024-12-02 18:02:22 +01:00
examples/basics/docker_sample
2021-11-07 11:34:37 +00:00
..
src Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Cargo.toml Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Dockerfile Use smaller Debian base image (#462) 2021-11-07 11:34:37 +00:00
README.MD Restructure folders (#411) 2021-02-26 00:57:58 +00:00

Docker sample

Build image

docker build -t docker_sample .

Run built image

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

Running unit tests

docker build -t docker_sample:test --target base .
docker run --rm docker_sample:test