gaialive commited on
Commit
7376da3
·
verified ·
1 Parent(s): 804e111

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -39,16 +39,13 @@ COPY . .
39
  COPY --from=frontend-builder /app/frontend/build ./frontend/build
40
 
41
  # Set environment variables for containerized environments
42
- ENV PORT=8080
43
  ENV HOST=0.0.0.0
44
  ENV FLASK_ENV=production
45
  ENV PYTHONPATH=/app
46
 
47
- EXPOSE 8080
48
-
49
- # Health check
50
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
51
- CMD curl -f http://localhost:8080/api/plugins || exit 1
52
 
53
  # Use our startup script which ensures directories are properly configured
54
  CMD ["python", "startup_hf.py"]
 
39
  COPY --from=frontend-builder /app/frontend/build ./frontend/build
40
 
41
  # Set environment variables for containerized environments
42
+ ENV PORT=7860
43
  ENV HOST=0.0.0.0
44
  ENV FLASK_ENV=production
45
  ENV PYTHONPATH=/app
46
 
47
+ # Hugging Face Spaces typically expects the app to be on port 7860 or the PORT env var
48
+ EXPOSE 7860
 
 
 
49
 
50
  # Use our startup script which ensures directories are properly configured
51
  CMD ["python", "startup_hf.py"]