1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/docker_sample
Jérémie Drouet 10887568a0 update docker sample by caching dependencies
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-27 22:01:26 +02:00
..
src update docker sample by caching dependencies 2020-05-27 22:01:26 +02:00
Cargo.toml Add docker_sample to examples collection 2020-02-24 15:08:04 -03:00
Dockerfile update docker sample by caching dependencies 2020-05-27 22:01:26 +02:00
README.MD update docker sample by caching dependencies 2020-05-27 22:01:26 +02: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