-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 847 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (17 loc) · 847 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
FROM python:bullseye
ARG CHROME_VERSION="101.0.4951.54-1"
# Check available versions here: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable
RUN apt update && apt install unzip wget -y \
&& wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
&& apt install -y /tmp/chrome.deb \
&& rm /tmp/chrome.deb \
&& apt clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN wget --no-verbose https://chromedriver.storage.googleapis.com/101.0.4951.41/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip\
&& rm chromedriver_linux64.zip
ENV PATH="/app:${PATH}"
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENTRYPOINT ["python3","main.py"]