Sahana31 commited on
Commit
91910aa
·
verified ·
1 Parent(s): 13cad11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
  FROM python:3.11-slim
2
 
3
- WORKDIR /code # ✅ HF Standard
4
 
5
- # Install PDF deps ONLY
6
  RUN apt-get update && apt-get install -y \
7
  poppler-utils \
8
  tesseract-ocr \
@@ -16,11 +16,9 @@ RUN pip install --no-cache-dir --upgrade pip && \
16
 
17
  COPY . .
18
 
19
- # Create persistent storage
20
  RUN mkdir -p /tmp/chroma_db /tmp/files /tmp/fonts
21
 
22
- # HF SPACES REQUIRED PORT
23
- EXPOSE 7860 # ✅ CRITICAL
24
 
25
- # HF SPACES REQUIRED CMD
 
26
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
 
3
+ WORKDIR /code
4
 
5
+ # Install PDF deps
6
  RUN apt-get update && apt-get install -y \
7
  poppler-utils \
8
  tesseract-ocr \
 
16
 
17
  COPY . .
18
 
 
19
  RUN mkdir -p /tmp/chroma_db /tmp/files /tmp/fonts
20
 
 
 
21
 
22
+
23
+
24
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]