Download Dockerfile from Modulo-6/api: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/Modulo-6/api/resolve/31c8dd67e47a516206b4122c4da00a634486a247/Dockerfile
- Command line
-
hf download hf://spaces/Modulo-6/api@31c8dd67e47a516206b4122c4da00a634486a247/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Modulo-6/api/resolve/31c8dd67e47a516206b4122c4da00a634486a247/Dockerfile
339 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Instalar dependencias primero (aprovecha cache de Docker layers) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar el código fuente | |
| COPY app/ ./app/ | |
| EXPOSE 8006 | |
| # Sin --reload en producción | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8006"] | |