Spaces:
Sleeping
Sleeping
| # Playwright + Python (Noble) | |
| FROM mcr.microsoft.com/playwright/python:v1.53.0-noble | |
| # 1. FIXED: Set this variable to allow global pip installs in Ubuntu 24.04 | |
| ENV PIP_BREAK_SYSTEM_PACKAGES=1 | |
| # 2. System dependencies (kept from previous fix for SHAP) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| python3-dev \ | |
| ffmpeg \ | |
| fonts-noto-color-emoji \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # 3. Python deps | |
| COPY requirements.txt . | |
| # Upgrade pip and install requirements (now allowed due to the ENV variable above) | |
| RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | |
| # App | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app:app"] |