File size: 598 Bytes
9b4d0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Usar Python 3.12
FROM python:3.12-slim

# Instalar dependencias del sistema si las necesitas (ffmpeg, etc.)
RUN apt-get update && apt-get install -y \
    ffmpeg \
    libgl1 \
    linux-libc-dev \
    build-essential \
 && rm -rf /var/lib/apt/lists/*

# Crear directorio de trabajo
WORKDIR /app

# Copiar e instalar requirements
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copiar el resto del código
COPY . /app

# Hugging Face marca el puerto en la env PORT
ENV PORT=7860

# Comando de arranque: tu app de Gradio
CMD ["python", "app.py"]