Download Dockerfile from Rathalos/prof-2: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/Rathalos/prof-2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rathalos/prof-2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rathalos/prof-2/resolve/main/Dockerfile
438 Bytes
| # Usa un'immagine di base di Ubuntu | |
| FROM ubuntu:20.04 | |
| # Evita i prompt interattivi durante l'installazione | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| # Installare pacchetti necessari, inclusi python3 e pip | |
| RUN apt-get update && apt-get install -y \ | |
| bash \ | |
| git \ | |
| python3 \ | |
| python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copia i file del progetto | |
| COPY . /app | |
| WORKDIR /app | |
| # Esegui lo script Python | |
| CMD ["python3", "app.py"] | |