Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
FROM python:3.10
|
3 |
# Use a Python version compatible with your packages
|
4 |
|
@@ -15,6 +14,7 @@ COPY app.py .
|
|
15 |
# If you need to download spacy models or other assets on build
|
16 |
# RUN python -m spacy download en_core_web_sm # Uncomment if you need this model
|
17 |
|
18 |
-
# Command to run your Flask application using Gunicorn
|
19 |
# This assumes your Flask application instance is named 'app' in 'app.py'
|
|
|
20 |
CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app
|
|
|
|
|
1 |
FROM python:3.10
|
2 |
# Use a Python version compatible with your packages
|
3 |
|
|
|
14 |
# If you need to download spacy models or other assets on build
|
15 |
# RUN python -m spacy download en_core_web_sm # Uncomment if you need this model
|
16 |
|
17 |
+
# Command to run your Flask application using a production-ready WSGI server like Gunicorn
|
18 |
# This assumes your Flask application instance is named 'app' in 'app.py'
|
19 |
+
# It binds to the PORT environment variable provided by the hosting environment.
|
20 |
CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app
|