Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaisreal committed Mar 23, 2024
1 parent d5df594 commit ecac373
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ RUN pip install --no-cache-dir -r requirements/prod.txt

# Install required packages and utilities for Chrome and Chromedriver
RUN apt-get update -qq -y && \
apt-get install -y \
apt-get install -y \
libasound2 \
ibatk-bridge2.0-0 \
libatk-bridge2.0-0 \
libgtk-4-1 \
libnss3 \
xdg-utils \
wget \
unzip \
&& \
&& wget -q -O /opt/chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
&& unzip /opt/chrome-linux64.zip -d /opt/ && \
&& rm /opt/chrome-linux64.zip && \
&& ln -s /opt/chrome/chrome /usr/local/bin/chrome && \
&& wget -q -O /opt/chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
&& unzip /opt/chromedriver-linux64.zip -d /opt/ && \
&& rm /opt/chromedriver-linux64.zip && \
&& mv /opt/chromedriver /usr/local/bin/chromedriver && \
&& chmod +x /usr/local/bin/chrome /usr/local/bin/chromedriver
unzip && \
wget -q -O /opt/chrome-linux64.zip https://bit.ly/chrome-linux64-121-0-6167-85 && \
unzip /opt/chrome-linux64.zip -d /opt/ && \
rm /opt/chrome-linux64.zip && \
ln -s /opt/chrome/chrome /usr/local/bin/chrome && \
wget -q -O /opt/chromedriver-linux64.zip https://bit.ly/chromedriver-linux64-121-0-6167-85 && \
unzip /opt/chromedriver-linux64.zip -d /opt/ && \
rm /opt/chromedriver-linux64.zip && \
mv /opt/chromedriver /usr/local/bin/chromedriver && \
chmod +x /usr/local/bin/chrome /usr/local/bin/chromedriver


# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down

0 comments on commit ecac373

Please sign in to comment.