Open Nefilime opened 3 years ago
I know this is a year late but I just ran into this and resolved by changing the base image (which doesn't include flask) to:
tiangolo/uwsgi-nginx-flask:python3.8-alpine-2020-12-19
The issue seems happen again even "tiangolo/uwsgi-nginx-flask:python3.8-alpine-2020-12-19" is already changed to. It looks like the new image from Dockerhub was not built properly so Flask is not installed in. An easy way is just uncommenting below lines in Dockerfile:
I build image via dockerfile
When container start i see error in container.
Traceback (most recent call last): File "./hello_app/init.py", line 1, in
from flask import Flask # Import the Flask class
ModuleNotFoundError: No module named 'flask'
unable to load app 0 (mountpoint='') (callable not found or import error)
no app loaded. GAME OVER