1
0
mirror of https://github.com/actix/examples synced 2024-11-24 14:53:00 +01:00
examples/basics/docker_sample
2022-02-02 01:45:20 +00:00
..
src update docker sample 2022-01-27 02:58:25 +00:00
.dockerignore update docker sample 2022-01-27 02:58:25 +00:00
Cargo.toml all versions are 1.0 2022-02-02 01:45:20 +00:00
Dockerfile update docker sample 2022-01-27 02:58:25 +00:00
README.MD Updated basics/docker_sample to v4. (#504) 2022-01-30 16:21:43 +00:00

Docker sample

Build image

docker build -t docker_sample .

Run built image

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

Running unit tests

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