Spaces:
Running
Running
| # BUAAT SENDIRI TOLOL IDIOT | |
| FROM python:3.10-slim | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN --mount=type=secret,id=HF_TOKEN \ | |
| git clone https://user:$(cat /run/secrets/HF_TOKEN)@huggingface.co/jemboutireng/OCRAPI . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "3"] |