rsm-roguchi commited on
Commit
9ebfdb5
·
1 Parent(s): 8bff662
Files changed (2) hide show
  1. Dockerfile +11 -6
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,18 +1,23 @@
1
- FROM mcr.microsoft.com/playwright/python:v1.53.0
2
- # <- Noble (24.04), Python 3.12
3
 
4
- WORKDIR /app
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  ffmpeg fonts-noto-color-emoji fonts-liberation \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
- # sanity check so you don't chase your tail again
10
- RUN python -V # should print 3.12.x
11
 
 
12
  COPY requirements.txt .
13
- # make sure requirements has: pyrsm==1.6.0 and shap==0.48.0 (wheel for 3.12)
14
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
15
 
 
 
 
 
16
  COPY . .
 
17
  EXPOSE 7860
18
  CMD ["shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app:app"]
 
1
+ # Playwright + Python (Noble). Pick a tag that exists for your PW version.
2
+ FROM mcr.microsoft.com/playwright/python:v1.53.0-noble
3
 
4
+ # Optional system extras
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  ffmpeg fonts-noto-color-emoji fonts-liberation \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ WORKDIR /app
 
10
 
11
+ # Python deps
12
  COPY requirements.txt .
13
+ # Make sure requirements.txt has: shap==0.48.0
14
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Do NOT run `playwright install-deps` in this image.
17
+ # (Browsers + deps are already inside the base image.)
18
+
19
+ # App
20
  COPY . .
21
+
22
  EXPOSE 7860
23
  CMD ["shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app:app"]
requirements.txt CHANGED
@@ -135,7 +135,7 @@ scipy==1.11.4
135
  scs==3.2.7.post2
136
  semantic-version==2.10.0
137
  setuptools==75.1.0
138
- shap==0.43.0
139
  shiny==1.2.1
140
  shinyswatch==0.8.0
141
  shinywidgets==0.5.1
 
135
  scs==3.2.7.post2
136
  semantic-version==2.10.0
137
  setuptools==75.1.0
138
+ shap==0.48.0
139
  shiny==1.2.1
140
  shinyswatch==0.8.0
141
  shinywidgets==0.5.1