docker build -t hello-world-api-gateway-dev --target dev .
docker run -d --publish 8080:80 --volume ./php:/php:Z --name hello-world-api-gateway-dev --rm hello-world-api-gateway-dev
View live dev in browser:
Run tests from dev image:
docker exec hello-world-api-gateway-dev ./vendor/bin/codecept run
docker exec -it hello-world-api-gateway-dev bash
docker build -t hello-world-api-gateway-test --target test .
docker run hello-world-api-gateway-test ./vendor/bin/codecept run
How to run test image for manual testing
docker run --publish 8080:80 --name hello-world-api-gateway-test --rm hello-world-api-gateway-test
How to build production image:
docker build -t hello-world-api-gateway-prod --target prod .
How to run production image:
docker run --publish 8080:80 --name hello-world-api-gateway-prod --rm hello-world-api-gateway-prod
View production in browser:
http://localhost:8080