HerzaJ commited on
Commit
beeeecb
·
verified ·
1 Parent(s): 3e216da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -41
Dockerfile CHANGED
@@ -1,49 +1,10 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- ENV DEBIAN_FRONTEND=noninteractive
6
-
7
- RUN apt-get update && apt-get install -y \
8
- wget \
9
- curl \
10
- gnupg \
11
- ca-certificates \
12
- fonts-liberation \
13
- libappindicator3-1 \
14
- libasound2 \
15
- libatk-bridge2.0-0 \
16
- libatk1.0-0 \
17
- libcups2 \
18
- libdbus-1-3 \
19
- libdrm2 \
20
- libgbm1 \
21
- libgtk-3-0 \
22
- libnspr4 \
23
- libnss3 \
24
- libx11-xcb1 \
25
- libxcomposite1 \
26
- libxdamage1 \
27
- libxrandr2 \
28
- xdg-utils \
29
- libxkbcommon0 \
30
- libpango-1.0-0 \
31
- libglib2.0-0 \
32
- libnss3 \
33
- libxcb1 \
34
- libxfixes3 \
35
- libxshmfence1 \
36
- libgl1 \
37
- libgles2 \
38
- && rm -rf /var/lib/apt/lists/*
39
-
40
  COPY requirements.txt .
41
 
42
- RUN pip install --no-cache-dir --upgrade pip && \
43
- pip install --no-cache-dir -r requirements.txt
44
-
45
- RUN python -m playwright install firefox && \
46
- python -m playwright install-deps firefox
47
 
48
  COPY solver.py .
49
 
 
1
+ FROM mcr.microsoft.com/playwright/python:v1.48.0-jammy
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
8
 
9
  COPY solver.py .
10