Spaces:
Runtime error
Runtime error
| # Use a lightweight Python base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements file and install Python dependencies with increased timeout | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install --timeout=7200 -r requirements.txt | |
| # Copy packages.txt and install system dependencies | |
| COPY packages.txt . | |
| RUN apt-get update && xargs -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/* | |
| # Copy application code | |
| COPY . . | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) | |
| # Command to run your application | |
| # CMD ["python", "app.py"] |