davanstrien's picture
davanstrien HF Staff
Install ocr-bench 0.0.4 from PyPI (replaces tarball pin)
f23a26b verified
Raw
History Blame Contribute Delete
426 Bytes
FROM python:3.12-slim
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
RUN uv pip install --system --no-cache "ocr-bench[viewer]>=0.0.4"
COPY --chown=user space.py ./
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
HF_HOME=/home/user/.cache/huggingface
ENV REPOS="davanstrien/bpl-ocr-bench-results"
EXPOSE 7860
CMD ["python", "space.py"]