Files
PastpaperMaster/backend/Dockerfile
Zhao 7a09167261 Initial commit: PastPaper Master full stack
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-21 12:27:47 +07:00

17 lines
348 B
Docker

FROM python:3.12-slim
WORKDIR /app
# System deps for PyMuPDF
RUN apt-get update && apt-get install -y --no-install-recommends \
libmupdf-dev gcc g++ && \
rm -rf /var/lib/apt/lists/*
COPY pyproject.toml .
RUN pip install --no-cache-dir .
COPY app/ app/
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]