abhisheksan commited on
Commit
c403ecb
·
verified ·
1 Parent(s): fc6d16b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 the app runs on
34
- EXPOSE 8000
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
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
 
 
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"]