Spaces:
Running
Running
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY app.py . | |
| COPY templates/ templates/ | |
| COPY static/ static/ | |
| # Create data directory with proper permissions | |
| RUN mkdir -p /app/data && chmod 777 /app/data | |
| # Set environment variables | |
| ENV DATA_DIR=/app/data | |
| ENV PYTHONUNBUFFERED=1 | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] |