Flask now runs on Gunicorn, and runs through NGinx

This commit is contained in:
2025-01-22 00:55:18 +00:00
parent 043effb6db
commit ca33ca6b70
6 changed files with 13 additions and 13 deletions

View File

@@ -14,8 +14,5 @@ COPY . .
ENV FLASK_APP=blueprints.__init__
ENV FLASK_DEBUG=True
# Expose Flask's port
EXPOSE 5000
# Start the Flask app
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
CMD ["gunicorn", "-b", "0.0.0.0:5000", "blueprints.__init__:create_app()"]