Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
20 lines
466 B
Docker
20 lines
466 B
Docker
FROM pytorch/pytorch:2.5.1-cuda12.1-cudnn9-runtime
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PIP_NO_CACHE_DIR=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
TORCH_DEVICE=cuda
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
poppler-utils \
|
|
libgl1 \
|
|
libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --upgrade pip && \
|
|
pip install marker-pdf fastapi uvicorn python-multipart
|
|
|
|
EXPOSE 8001
|
|
|
|
CMD ["marker_server", "--port", "8001"]
|