Skip to content

Commit 3a662b8

Browse files
committed
fix (grass.dockerfile): enable headless mode and update package installation for improved functionality
1 parent 88b46d6 commit 3a662b8

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

grass.dockerfile

+13-7
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ ENV EXTENSION_URLS=${EXTENSION_URL}
1515
ENV CRX_DOWNLOAD_URLS=${CRX_DOWNLOAD_URLS}
1616
# In case of error multiply all backoff-timings of this value
1717
ENV MAX_RETRY_MULTIPLIER=3
18+
# Enable headless mode
19+
ENV HEADLESS=true
1820

1921

2022
# Install necessary packages then clean up to reduce image size
21-
RUN apt update && \
23+
RUN set -e; \
24+
apt update && \
2225
apt upgrade -y && \
2326
apt install -qqy \
2427
curl \
@@ -27,17 +30,20 @@ RUN apt update && \
2730
chromium \
2831
chromium-driver \
2932
python3 \
30-
python3-selenium && \
33+
python3-requests \
34+
python3-selenium \
35+
coreutils \
36+
bash && \
3137
apt autoremove --purge -y && \
3238
apt clean && \
3339
rm -rf /var/lib/apt/lists/*
3440

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
3844

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
4147

4248
# Install python requirements
4349
COPY grass_main.py .

0 commit comments

Comments
 (0)