Download Dockerfile from ed29/xertify: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/ed29/xertify/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ed29/xertify/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ed29/xertify/resolve/main/Dockerfile
381 Bytes
| FROM python:3.9-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Copiar requirements | |
| COPY --chown=user:root ./requirements.txt ./requirements.txt | |
| # Instalar dependencias | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar el proyecto | |
| COPY --chown=user:root . /app | |
| EXPOSE 7860 | |
| # Ejecutar Flask mediante Gunicorn (WSGI) | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |