This is a simple http server which displays current time in the specific timezone.
Application also displays the time when the /
url was first accessed
at the /visits
url.
Use the package manager pip to install dependencies.
cd app_python
pip install -r requirements.txt
main:app
Build and run the image using Docker.
docker build -t devops app_python
docker run --rm -p 8000:8000 devops
We are using the following linters for this repository:
pylint app_python
mdl .
hadolint **/Dockerfile
pytest
docker-compose build
docker-compose up