Spaces:
Sleeping
Sleeping
Download Dockerfile from Kay86X/doc-extract-backend: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/Kay86X/doc-extract-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kay86X/doc-extract-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kay86X/doc-extract-backend/resolve/main/Dockerfile
458 Bytes
| FROM python:3.14-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| COPY ./requirements.txt /tmp/requirements.txt | |
| COPY ./app /app | |
| WORKDIR /app | |
| EXPOSE 7860 | |
| RUN python -m venv /env && \ | |
| /env/bin/pip install --upgrade pip && \ | |
| /env/bin/pip install --no-cache-dir -r /tmp/requirements.txt && \ | |
| rm -rf /tmp && \ | |
| adduser --disabled-password django-user | |
| ENV PATH="/env/bin/:$PATH" | |
| USER django-user | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |