Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Expose Gradio port | |
| EXPOSE 7860 | |
| # Set environment variables for Modal backend | |
| ENV USE_MODAL_BACKEND=true | |
| ENV MODAL_BACKEND_URL=https://vmugdha-ai--security-auditor-backend-fastapi-app.modal.run | |
| # Run the application | |
| CMD ["python", "app.py"] | |