File size: 1,321 Bytes
89d98f7
 
eaa753e
89d98f7
 
eaa753e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0de36c5
 
 
 
 
 
89d98f7
4b91a21
89d98f7
4b91a21
 
89d98f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b91a21
89d98f7
eaa753e
89d98f7
 
8e8ff91
101de00
 
 
 
 
 
 
89d98f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Use an Ubuntu base image, which is officially supported by Playwright
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
    python3 \
    python3-pip \
    libglib2.0-0 \
    libnss3 \
    libnspr4 \
    libdbus-1-3 \
    libatk1.0-0 \
    libatk-bridge2.0-0 \
    libcups2 \
    libx11-6 \
    libxcomposite1 \
    libxdamage1 \
    libxext6 \
    libxfixes3 \
    libxrandr2 \
    libgbm1 \
    libxcb1 \
    libxkbcommon0 \
    libpango-1.0-0 \
    libcairo2 \
    libasound2 \
    libatspi2.0-0 \
    libx11-xcb1 \
    libxcursor1 \
    libgtk-3-0 \
    libpangocairo-1.0-0 \
    libcairo-gobject2 \
    libgdk-pixbuf2.0-0 \
    libicu-dev \
    libatomic1 \
    libxslt1-dev \
    libwoff2-1.0.2 \
    libevent-2.1-7 \
    libopus0 \
    libwebpdemux2 \
    libharfbuzz-icu0 \
    libjpeg8 \
    libwebpmux3 \
    libenchant-2-2 \
    libsecret-1-0 \
    libhyphen0 \
    libpcre2-8-0 \
    libnghttp2-14 \
    libegl1 \
    libglx0 \
    libgudev-1.0-0 \
    libffi7 \
    libevdev2 \
    libgles2 \
    libx264-155

# Install Playwright and its dependencies
RUN pip3 install playwright && playwright install chromium

# Set the working directory
WORKDIR /app

# Copy the Python script into the container
COPY selimium_try.py /app/

# Command to run the Python script
CMD ["python3", "selimium_try.py"]