1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/docker_sample
2020-04-03 16:16:17 +09:00
..
src Run rustfmt 2020-04-03 16:16:17 +09:00
Cargo.toml Add docker_sample to examples collection 2020-02-24 15:08:04 -03:00
Dockerfile Add docker_sample to examples collection 2020-02-24 15:08:04 -03:00
README.MD Add docker_sample to examples collection 2020-02-24 15:08:04 -03:00

Build image:

  docker build -t docker_sample --force-rm --no-cache -f  Dockerfile .

Run image:

  
  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