-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 735 Bytes
/
Dockerfile
File metadata and controls
36 lines (31 loc) · 735 Bytes
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
FROM python:3.12-slim
# Install system dependencies for Chromium and xvfb
RUN apt-get update && apt-get install -y --no-install-recommends \
xvfb \
xauth \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libxkbcommon0 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libcairo2 \
libasound2 \
libx11-xcb1 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
# Install Patchright
RUN pip install --no-cache-dir patchright
# Install Patchright's Chromium
RUN patchright install chromium
WORKDIR /app
COPY fetch.py .
COPY entrypoint.sh .
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]