Spaces:
Runtime error
Runtime error
| # Use Ubuntu 22.04 for GLIBCXX_3.4.32 | |
| FROM ubuntu:22.04 | |
| # Install Python and system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| python3.10 \ | |
| python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set Python 3.10 as default | |
| RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 | |
| RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the app code | |
| COPY app.py . | |
| # Run the app | |
| CMD ["python", "app.py"] |