HerzaJ commited on
Commit
bb3af96
·
verified ·
1 Parent(s): a1f4b1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -1
Dockerfile CHANGED
@@ -1,11 +1,43 @@
1
- FROM mcr.microsoft.com/playwright/python:v1.40.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 app.py .
10
 
11
  ENV PYTHONUNBUFFERED=1
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y \
6
+ wget \
7
+ gnupg \
8
+ ca-certificates \
9
+ fonts-liberation \
10
+ libasound2 \
11
+ libatk-bridge2.0-0 \
12
+ libatk1.0-0 \
13
+ libatspi2.0-0 \
14
+ libcups2 \
15
+ libdbus-1-3 \
16
+ libdrm2 \
17
+ libgbm1 \
18
+ libgtk-3-0 \
19
+ libnspr4 \
20
+ libnss3 \
21
+ libwayland-client0 \
22
+ libxcomposite1 \
23
+ libxdamage1 \
24
+ libxfixes3 \
25
+ libxkbcommon0 \
26
+ libxrandr2 \
27
+ xdg-utils \
28
+ libu2f-udev \
29
+ libvulkan1 \
30
+ git \
31
+ && rm -rf /var/lib/apt/lists/*
32
+
33
  COPY requirements.txt .
34
 
35
  RUN pip install --no-cache-dir -r requirements.txt
36
 
37
+ RUN pip install camoufox
38
+
39
+ RUN python -m camoufox fetch
40
+
41
  COPY app.py .
42
 
43
  ENV PYTHONUNBUFFERED=1