Spaces:
Sleeping
Sleeping
Download Dockerfile from InnovPythIA/acadSH-API: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/InnovPythIA/acadSH-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/InnovPythIA/acadSH-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/InnovPythIA/acadSH-API/resolve/main/Dockerfile
403 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"] |