Spaces:
Paused
Paused
Download Dockerfile from Esimuda/linguard-gpu-train: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/Esimuda/linguard-gpu-train/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Esimuda/linguard-gpu-train/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Esimuda/linguard-gpu-train/resolve/main/Dockerfile
396 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH PYTHONUNBUFFERED=1 | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["python","app.py"] | |