klydekushy commited on
Commit
c2b98b7
·
verified ·
1 Parent(s): f4fcb51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -18
Dockerfile CHANGED
@@ -1,28 +1,11 @@
1
  FROM python:3.10-slim
2
-
3
- # Installation des dépendances système pour l'OCR et la compilation
4
- RUN apt-get update && apt-get install -y \
5
- build-essential \
6
- tesseract-ocr \
7
- tesseract-ocr-fra \
8
- libgl1-mesa-glx \
9
- libglib2.0-0 \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
  WORKDIR /app
13
-
14
- # Création d'un dossier cache avec permissions totales pour Docling/RapidOCR
15
  RUN mkdir -p /app/cache && chmod 777 /app/cache
16
  ENV HF_HOME=/app/cache
17
  ENV DOCLING_MODELS_CACHE=/app/cache
18
  ENV RAPIDOCR_PATH=/app/cache
19
-
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
-
23
  COPY . .
24
-
25
- # Port standard Hugging Face
26
- EXPOSE 7860
27
-
28
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
  FROM python:3.10-slim
2
+ RUN apt-get update && apt-get install -y build-essential tesseract-ocr tesseract-ocr-fra libgl1-mesa-glx libglib2.0-0 && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
3
  WORKDIR /app
 
 
4
  RUN mkdir -p /app/cache && chmod 777 /app/cache
5
  ENV HF_HOME=/app/cache
6
  ENV DOCLING_MODELS_CACHE=/app/cache
7
  ENV RAPIDOCR_PATH=/app/cache
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
 
10
  COPY . .
 
 
 
 
11
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]