mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Disable chromedriver
This commit is contained in:
parent
a5dbf09040
commit
c196bb9d7f
1 changed files with 9 additions and 8 deletions
17
Dockerfile
17
Dockerfile
|
@ -16,21 +16,22 @@ RUN apt-get update && apt-get install -y graphviz libgraphviz-dev graphviz-dev w
|
|||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Chrome has no install candidate on ARM64
|
||||
# If you plan on running on x86 you can comment this out
|
||||
# Install Chrome
|
||||
RUN apt install chromium-browser
|
||||
|
||||
# RUN apt install chromium-browser
|
||||
# Install Chromedriver
|
||||
ENV CHROMEDRIVER_VERSION=124.0.6367.155
|
||||
RUN wget https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/linux64/chromedriver-linux64.zip \
|
||||
&& unzip chromedriver-linux64.zip && rm -dfr chromedriver_linux64.zip \
|
||||
&& mv chromedriver-linux64/chromedriver /usr/bin/chromedriver \
|
||||
&& chmod +x /usr/bin/chromedriver
|
||||
# ENV CHROMEDRIVER_VERSION=124.0.6367.155
|
||||
# RUN wget https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/linux64/chromedriver-linux64.zip \
|
||||
# && unzip chromedriver-linux64.zip && rm -dfr chromedriver_linux64.zip \
|
||||
# && mv chromedriver-linux64/chromedriver /usr/bin/chromedriver \
|
||||
# && chmod +x /usr/bin/chromedriver
|
||||
|
||||
# Install Firefox and Geckodriver
|
||||
RUN apt-get update && apt-get install -y firefox-esr
|
||||
# Download the latest Geckodriver and install it
|
||||
ENV GECKODRIVER_VERSION=latest
|
||||
RUN wget -O geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz
|
||||
RUN wget -O geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz
|
||||
RUN tar -zxf geckodriver.tar.gz -C /usr/bin
|
||||
RUN chmod +x /usr/bin/geckodriver
|
||||
|
||||
|
|
Loading…
Reference in a new issue