Spaces:
Sleeping
Sleeping
Download Dockerfile from solvorlabs/docforge-api: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/solvorlabs/docforge-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/solvorlabs/docforge-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/solvorlabs/docforge-api/resolve/main/Dockerfile
760 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| wget curl gnupg \ | |
| libnss3 libatk1.0-0 libatk-bridge2.0-0 \ | |
| libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 \ | |
| libxfixes3 libxrandr2 libgbm1 libasound2 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir /ms-playwright && chmod 777 /ms-playwright | |
| RUN playwright install chromium --with-deps | |
| COPY --chown=user backend/ ./backend/ | |
| USER user | |
| ENV DEV_MODE=false | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |