File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ ENV EXTENSION_URLS=${EXTENSION_URL}
15
15
ENV CRX_DOWNLOAD_URLS=${CRX_DOWNLOAD_URLS}
16
16
# In case of error multiply all backoff-timings of this value
17
17
ENV MAX_RETRY_MULTIPLIER=3
18
+ # Enable headless mode
19
+ ENV HEADLESS=true
18
20
19
21
20
22
# Install necessary packages then clean up to reduce image size
21
- RUN apt update && \
23
+ RUN set -e; \
24
+ apt update && \
22
25
apt upgrade -y && \
23
26
apt install -qqy \
24
27
curl \
@@ -27,17 +30,20 @@ RUN apt update && \
27
30
chromium \
28
31
chromium-driver \
29
32
python3 \
30
- python3-selenium && \
33
+ python3-requests \
34
+ python3-selenium \
35
+ coreutils \
36
+ bash && \
31
37
apt autoremove --purge -y && \
32
38
apt clean && \
33
39
rm -rf /var/lib/apt/lists/*
34
40
35
- # Download crx downloader from git
36
- RUN git clone "https://github.com/${GIT_USERNAME}/${GIT_REPO}.git" && \
37
- chmod +x ./${GIT_REPO}/crx-dl.py
41
+ # # Download crx downloader from git
42
+ # RUN git clone "https://github.com/${GIT_USERNAME}/${GIT_REPO}.git" && \
43
+ # chmod +x ./${GIT_REPO}/crx-dl.py
38
44
39
- # Download the extension selected
40
- RUN python3 ./${GIT_REPO}/crx-dl.py $EXTENSION_ID
45
+ # # Download the extension selected
46
+ # RUN python3 ./${GIT_REPO}/crx-dl.py $EXTENSION_ID
41
47
42
48
# Install python requirements
43
49
COPY grass_main.py .
You can’t perform that action at this time.
0 commit comments