Spaces:
Runtime error
Runtime error
Download Dockerfile from ancerlop/MargeCode42: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/ancerlop/MargeCode42/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ancerlop/MargeCode42/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ancerlop/MargeCode42/resolve/main/Dockerfile
656 Bytes
| FROM python:3.9-slim | |
| # Instalar dependencias del sistema | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Crear directorio de trabajo | |
| WORKDIR /app | |
| # Copiar archivos de requisitos | |
| COPY requirements.txt . | |
| # Instalar dependencias de Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar el c贸digo de la aplicaci贸n | |
| COPY . . | |
| # Crear directorio temporal para archivos de c贸digo | |
| RUN mkdir -p /tmp/42coderunner | |
| # Exponer el puerto | |
| EXPOSE 5000 | |
| # Comando para ejecutar la aplicaci贸n con archivo de configuraci贸n | |
| CMD ["gunicorn", "--config", "gunicorn_config.py", "app:app"] |