saifisvibinn commited on
Commit
8563e60
·
1 Parent(s): 6e2c902

Fix Dockerfile: improve mkdir command and .dockerignore

Browse files
Files changed (2) hide show
  1. .dockerignore +3 -3
  2. Dockerfile +3 -1
.dockerignore CHANGED
@@ -28,9 +28,9 @@ output/
28
  uploads/
29
  pdfs/
30
 
31
- # Documentation (keep README.md)
32
- *.md
33
- !README.md
34
 
35
  # Other
36
  .DS_Store
 
28
  uploads/
29
  pdfs/
30
 
31
+ # Documentation - don't exclude README.md (needed for Space config)
32
+ # *.md
33
+ # !README.md
34
 
35
  # Other
36
  .DS_Store
Dockerfile CHANGED
@@ -29,7 +29,9 @@ RUN pip install --no-cache-dir --upgrade pip && \
29
  COPY . .
30
 
31
  # Create necessary directories
32
- RUN mkdir -p output pdfs uploads
 
 
33
 
34
  # Expose Hugging Face Spaces default port
35
  EXPOSE 7860
 
29
  COPY . .
30
 
31
  # Create necessary directories
32
+ RUN mkdir -p output && \
33
+ mkdir -p pdfs && \
34
+ mkdir -p uploads
35
 
36
  # Expose Hugging Face Spaces default port
37
  EXPOSE 7860