Spaces:
Sleeping

File size: 381 Bytes
0e45ab7
 
 
 
 
4c11f8a
 
 
 
 
0e45ab7
4c11f8a
0e45ab7
 
 
 
4c11f8a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9-slim

RUN useradd -m -u 1000 user
WORKDIR /app

# Copiar requirements
COPY --chown=user:root ./requirements.txt ./requirements.txt

# Instalar dependencias
RUN pip install --no-cache-dir -r requirements.txt

# Copiar el proyecto
COPY --chown=user:root . /app

EXPOSE 7860

# Ejecutar Flask mediante Gunicorn (WSGI)
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]