Spaces:
Configuration error
Configuration error
File size: 635 Bytes
6f89cdc 857bbbf 6f89cdc 857bbbf |
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 29 30 31 32 33 34 35 36 |
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"]
version: "3.9"
services:
backend:
build: .
ports:
- "7860:7860"
environment:
- PYTHONUNBUFFERED=1
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
working_dir: /app
command: ["npm", "start"] |