File size: 776 Bytes
1109eb6
9ebfdb5
0401ec5
1109eb6
 
 
 
ab8f95a
60c1d6e
 
 
 
 
ab8f95a
ca5301a
9ebfdb5
13c995c
1109eb6
ab8f95a
60c1d6e
1109eb6
ab8f95a
fd6b340
9ebfdb5
69a41e0
9ebfdb5
0401ec5
60c1d6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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"]