RohanB67 commited on
Commit
e22b388
·
1 Parent(s): a0b05a3

fix: remove apt-get step causing build freeze

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -10
Dockerfile CHANGED
@@ -1,14 +1,8 @@
1
- # EpiRAG - Dockerfile for Hugging Face Spaces
2
  FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
- # System deps for PyMuPDF
7
- RUN apt-get update && apt-get install -y --no-install-recommends \
8
- libmupdf-dev gcc g++ \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # Install Python deps
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
@@ -22,9 +16,7 @@ COPY . .
22
  RUN useradd -m -u 1000 appuser && chown -R appuser /app
23
  USER appuser
24
 
25
- # HF Spaces default port
26
  EXPOSE 7860
27
-
28
  ENV EPIRAG_ENV=cloud
29
 
30
- CMD ["python", "server.py"]
 
 
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install Python deps first
 
 
 
 
 
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
16
  RUN useradd -m -u 1000 appuser && chown -R appuser /app
17
  USER appuser
18
 
 
19
  EXPOSE 7860
 
20
  ENV EPIRAG_ENV=cloud
21
 
22
+ CMD ["python", "server.py"]