I have a Python (2.7) app which is started in my dockerfile:
CMD [\"python\",\"main.py\"]
main.py prints some strings when it is s
If you aren't using docker-compose and just normal docker instead, you can add this to your Dockerfile that is hosting a flask app
docker-compose
docker
Dockerfile
ARG FLASK_ENV="production" ENV FLASK_ENV="${FLASK_ENV}" \ PYTHONUNBUFFERED="true" CMD [ "flask", "run" ]