Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files123412 unmodified lines17181920FROM python:3.10# Use a Python version compatible with your packagesWORKDIR /app12 unmodified lines# Command to run your Flask application using a production-ready WSGI server like Gunicorn# This assumes your Flask application instance is named 'app' in 'app.py'# It binds to the PORT environment variable provided by the hosting environment.CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app123412 unmodified lines1718192021FROM python:3.10# Use a Python version compatible with your packagesWORKDIR /app12 unmodified lines# Command to run your Flask application using a production-ready WSGI server like Gunicorn# This assumes your Flask application instance is named 'app' in 'app.py'# It binds to the PORT environment variable provided by the hosting environment.# Provide a default port (e.g., 7860) if the PORT environment variable is not set.CMD exec gunicorn --bind 0.0.0.0:${PORT:-7860} --workers 1 --threads 8 --timeout 0 app:app
Dockerfile+3-2