rsm-roguchi commited on
Commit
ab8f95a
·
1 Parent(s): d4463cf
Files changed (1) hide show
  1. Dockerfile +13 -17
Dockerfile CHANGED
@@ -1,26 +1,22 @@
1
- # Start with Python 3.12 base image
2
- FROM python:3.12
3
 
4
- COPY requirements.txt .
5
-
6
- RUN pip install --upgrade pip
7
- RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
10
 
11
- RUN playwright install chromium
12
- RUN playwright install-deps
13
- RUN playwright install
14
-
15
- RUN python -m playwright install chromium
16
- RUN python -m playwright install-deps
17
- RUN python -m playwright install
18
 
19
- # Copy project files
20
  COPY . .
21
 
22
- # Expose Shiny port
23
  EXPOSE 7860
24
 
25
- # Run the Shiny app
26
  CMD ["shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app:app"]
 
1
+ # Playwright + Python preloaded (Jammy)
2
+ FROM mcr.microsoft.com/playwright/python:v1.47.2-jammy
3
 
4
+ # System extras you might want
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ ffmpeg \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
+ WORKDIR /app
10
 
11
+ # Python deps
12
+ COPY requirements.txt .
13
+ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
 
 
 
 
14
 
15
+ # App
16
  COPY . .
17
 
18
+ # Shiny port
19
  EXPOSE 7860
20
 
21
+ # Run Shiny app
22
  CMD ["shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app:app"]