Download Dockerfile from Junior16/ROSTRO: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Junior16/ROSTRO/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Junior16/ROSTRO/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Junior16/ROSTRO/resolve/main/Dockerfile
447 Bytes
| # Usa una imagen base de Python | |
| FROM python:3.13.0 | |
| # 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 | |
| RUN pip install fastapi uvicorn | |
| RUN pip install pillow | |
| COPY . . | |
| RUN chmod -R 777 /code | |
| # Comando para ejecutar la aplicación | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |