Download Dockerfile from KaustavMP/JalGuard: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KaustavMP/JalGuard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/Dockerfile
465 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:${PATH}" | |
| COPY --chown=user:user requirements.txt ./requirements.txt | |
| COPY --chown=user:user backend/requirements.txt ./backend/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |