Spaces:
Runtime error
Runtime error
File size: 532 Bytes
08f9875 410242f 1d32222 410242f 1d32222 08f9875 410242f 08f9875 410242f 08f9875 410242f 08f9875 410242f 08f9875 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.10-slim
# Install modern system dependencies (updated graphics engine for OpenCV)
RUN apt-get update && apt-get install -y \
tesseract-ocr \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Copy and install Python requirements
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all project code
COPY . .
# Hugging Face Spaces run on port 7860 by default
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|