-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.0
More file actions
42 lines (35 loc) · 788 Bytes
/
Copy pathDockerfile.0
File metadata and controls
42 lines (35 loc) · 788 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
37
38
39
40
41
FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app
# --- Install Chromium, ChromeDriver, and Xvfb for virtual display ---
RUN apt-get update && apt-get install -y \
chromium \
chromium-driver \
xvfb \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libxss1 \
libasound2 \
libgbm1 \
libgtk-3-0 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libxrender1 \
libxfixes3 \
libxi6 \
libxtst6 \
libpangocairo-1.0-0 \
libpango-1.0-0 \
fonts-liberation \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# --- Python deps ---
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# --- Copy app ---
COPY . .
CMD ["python", "main.py"]