Spaces:
Sleeping
Sleeping
Download Dockerfile from Pathikreet/ap-commander-training: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/Pathikreet/ap-commander-training/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Pathikreet/ap-commander-training/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Pathikreet/ap-commander-training/resolve/main/Dockerfile
491 Bytes
| FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN apt-get update && apt-get install -y python3 python3-pip git && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| ln -s /usr/bin/python3 /usr/bin/python | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd -m appuser && chown -R appuser /app | |
| USER appuser | |
| EXPOSE 7860 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| CMD ["python", "app.py"] | |