Spaces:
Sleeping
Sleeping
Download Dockerfile from LuisTo97/GreenVision-Docker: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/LuisTo97/GreenVision-Docker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LuisTo97/GreenVision-Docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LuisTo97/GreenVision-Docker/resolve/main/Dockerfile
451 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Necesitamos git para los subprocess.run(["git", ...]) que configuran autores | |
| RUN apt-get update && apt-get install -y git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Redirigimos HOME para que Streamlit pueda escribir su config | |
| ENV HOME=/tmp | |
| COPY . . | |
| RUN pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |