davanstrien's picture
davanstrien HF Staff
Use >=0.0.2 instead of pinned version
ec3f4b0 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.2"
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"]