saifisvibinn commited on
Commit
136fefe
·
1 Parent(s): 485e497

Use python3 in CMD and simplify mkdir

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -35,9 +35,7 @@ RUN pip install --no-cache-dir -r requirements.txt
35
  COPY . .
36
 
37
  # Create necessary directories
38
- RUN mkdir -p output && \
39
- mkdir -p pdfs && \
40
- mkdir -p uploads
41
 
42
  # Expose Hugging Face Spaces default port
43
  EXPOSE 7860
@@ -47,4 +45,5 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
47
  CMD curl -f http://localhost:7860/ || exit 1
48
 
49
  # Run Flask app
50
- CMD ["python", "app.py"]
 
 
35
  COPY . .
36
 
37
  # Create necessary directories
38
+ RUN mkdir -p output pdfs uploads
 
 
39
 
40
  # Expose Hugging Face Spaces default port
41
  EXPOSE 7860
 
45
  CMD curl -f http://localhost:7860/ || exit 1
46
 
47
  # Run Flask app
48
+ # Use python3 explicitly and ensure we're in the right directory
49
+ CMD ["python3", "app.py"]