Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -29,13 +29,16 @@ ENV PYTHONUNBUFFERED=1
|
|
29 |
ENV LOG_LEVEL=INFO
|
30 |
# Use /tmp for logs which is always writable
|
31 |
ENV LOG_PATH="/tmp/westernfront.log"
|
|
|
|
|
32 |
|
33 |
-
# Expose the port
|
34 |
-
EXPOSE
|
35 |
|
36 |
# The following environment variables will be available at runtime from Huggingface Secrets:
|
37 |
# - TWITTER_BEARER_TOKEN
|
38 |
# - GEMINI_API_KEY
|
39 |
# - UPDATE_INTERVAL_MINUTES
|
40 |
|
41 |
-
|
|
|
|
29 |
ENV LOG_LEVEL=INFO
|
30 |
# Use /tmp for logs which is always writable
|
31 |
ENV LOG_PATH="/tmp/westernfront.log"
|
32 |
+
# Explicitly set auto-update to false
|
33 |
+
ENV AUTO_UPDATE_ENABLED=false
|
34 |
|
35 |
+
# Expose the port that Hugging Face Spaces expects
|
36 |
+
EXPOSE 7860
|
37 |
|
38 |
# The following environment variables will be available at runtime from Huggingface Secrets:
|
39 |
# - TWITTER_BEARER_TOKEN
|
40 |
# - GEMINI_API_KEY
|
41 |
# - UPDATE_INTERVAL_MINUTES
|
42 |
|
43 |
+
# Use single worker for Hugging Face Spaces to avoid startup issues
|
44 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|