Spaces:
Running
Running
File size: 470 Bytes
66ba82e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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
COPY --chown=user pyproject.toml README.md ./
COPY --chown=user src/ ./src/
RUN uv pip install --system --no-cache ".[viewer]"
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", "-m", "ocr_bench.space"]
|