A simple python Flask app that will be package as docker image
ENV_VAR_NAME | Description | default | required |
---|---|---|---|
FLASK_HOST | host to bind flask | localhost | no |
FLASK_PORT | port to bind flask | 8080 | no |
FLASK_DEBUG | start flask in debug more | false | no |
- python >= 3.7
- poetry
poetry install
To enforce Dockerfile syntax we are using hadolint
hadolint Dockerfile
We are testing the Docker image with pytest-testinfra.
Note: as this is a runtime test you need to be able to run the docker image to test it
# poetry install
poetry run pytest --verbose tests/docker -m docker