Download Dockerfile from q6/P2: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/spaces/q6/P2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/q6/P2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/q6/P2/resolve/main/Dockerfile
435 Bytes
| FROM python:3.10-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir fastapi uvicorn aiohttp httpx numpy pillow pydantic cryptography | |
| COPY --chown=user ./backend /app/backend | |
| COPY --chown=user ./frontend /app/frontend | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"] | |