file_extension_change / Dockerfile
euler314's picture
Update Dockerfile
4b175fd verified
raw
history blame contribute delete
470 Bytes
# Dockerfile
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# Install system deps: OCR, Marker backends, and Pandoc
RUN apt-get update && \
apt-get install -y --no-install-recommends \
tesseract-ocr \
pandoc \
&& rm -rf /var/lib/apt/lists/*
# Python deps
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]