Spaces:
Configuration error
Configuration error
File size: 424 Bytes
6f89cdc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.10-slim
# Instala dependencias del sistema
RUN apt-get update && apt-get install -y \
build-essential \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copia los archivos de la app
COPY . .
# Instala las dependencias de Python
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
EXPOSE 7860
CMD ["python", "main.py"]
if __name__ == "__main__":
demo.launch() |