Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -21,9 +21,11 @@ COPY static/ static/
|
|
| 21 |
# Install Python dependencies
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# Expose the default Hugging Face Spaces port
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
-
# Start the app using gunicorn
|
| 28 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers=1", "--timeout=120", "wsgi:application"]
|
| 29 |
-
|
|
|
|
| 21 |
# Install Python dependencies
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
+
# Set environment variables to avoid TensorFlow warnings
|
| 25 |
+
ENV TF_CPP_MIN_LOG_LEVEL=3
|
| 26 |
+
|
| 27 |
# Expose the default Hugging Face Spaces port
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
+
# Start the app using gunicorn with optimizations
|
| 31 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers=1", "--threads=2", "--timeout=120", "wsgi:application"]
|
|
|