Download Dockerfile from MarceloLZR/PARCIAL2: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/MarceloLZR/PARCIAL2/resolve/main/Dockerfile
- Command line
-
hf download hf://MarceloLZR/PARCIAL2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/MarceloLZR/PARCIAL2/resolve/main/Dockerfile
389 Bytes
| # Usa una imagen base de Python | |
| FROM python:3.9 | |
| # Establece el directorio de trabajo | |
| WORKDIR /code | |
| # Copia los archivos necesarios al contenedor | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir -r /code/requirements.txt | |
| COPY . . | |
| RUN chmod -R 777 /code | |
| # Comando para ejecutar la aplicación | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |