Spaces:
Runtime error
Runtime error
| # Development Dockerfile with hot reload | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| g++ \ | |
| libpq-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install development dependencies | |
| RUN pip install --no-cache-dir \ | |
| watchdog \ | |
| flask-debugtoolbar \ | |
| ipdb | |
| # Copy application code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Development command with hot reload | |
| CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860", "--reload"] |