Spaces:
Configuration error
Configuration error
| 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"] |