euler314 commited on
Commit
4b175fd
·
verified ·
1 Parent(s): 7080c2c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,26 +1,24 @@
1
  # Dockerfile
2
  FROM python:3.10-slim
3
 
4
- # Prevent .pyc files, unbuffered logging
5
  ENV PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1
7
 
8
  WORKDIR /app
9
 
10
- # Install system deps for OCR (optional)
11
  RUN apt-get update && \
12
  apt-get install -y --no-install-recommends \
13
  tesseract-ocr \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Copy & install Python deps
17
  COPY requirements.txt .
18
  RUN pip install --upgrade pip && \
19
  pip install -r requirements.txt
20
 
21
- # Copy application code
22
  COPY app.py .
23
 
24
  EXPOSE 7860
25
-
26
  CMD ["python", "app.py"]
 
1
  # Dockerfile
2
  FROM python:3.10-slim
3
 
 
4
  ENV PYTHONDONTWRITEBYTECODE=1 \
5
  PYTHONUNBUFFERED=1
6
 
7
  WORKDIR /app
8
 
9
+ # Install system deps: OCR, Marker backends, and Pandoc
10
  RUN apt-get update && \
11
  apt-get install -y --no-install-recommends \
12
  tesseract-ocr \
13
+ pandoc \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Python deps
17
  COPY requirements.txt .
18
  RUN pip install --upgrade pip && \
19
  pip install -r requirements.txt
20
 
 
21
  COPY app.py .
22
 
23
  EXPOSE 7860
 
24
  CMD ["python", "app.py"]