Spaces:
Sleeping
Sleeping
File size: 424 Bytes
c27272e 0185c37 c27272e 5055fd9 c27272e c9e83d0 c27272e c9e83d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Usa una imagen base de Python
FROM python:3.12.7
# 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
COPY . .
RUN chmod -R 777 /code
# Comando para ejecutar la aplicación
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |