dfa32412 commited on
Commit
29fad8f
·
verified ·
1 Parent(s): c0b8476

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -2,9 +2,13 @@ FROM mcr.microsoft.com/playwright/python:v1.44.0-jammy
2
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  RUN pip install --no-cache-dir flask requests playwright
6
  run python -m playwright install --with-deps chromium
7
 
8
  COPY . .
9
 
10
- CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ xvfb \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  RUN pip install --no-cache-dir flask requests playwright
10
  run python -m playwright install --with-deps chromium
11
 
12
  COPY . .
13
 
14
+ CMD ["xvfb-run", "-a", "--server-args=-screen 0 1920x1080x24", "python", "app.py"]