Skip to content

Commit

Permalink
add chromedrtiver
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnyPocketBook committed Oct 31, 2023
1 parent 79ee147 commit eedb75d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM telegraf:latest
# FROM telegraf:alpine

RUN apt-get update && apt-get install -y --no-install-recommends python3 ipmitool smartmontools sudo python3-venv git
RUN apt-get update && apt-get install -y --no-install-recommends python3 ipmitool smartmontools sudo python3-venv git wget unzip
ARG CHROMEDRIVER_VERSION=119.0.6045.105
RUN wget -q "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" \
&& unzip chromedriver_linux64.zip -d /opt/chromedriver \
&& rm chromedriver_linux64.zip \
&& chmod +x /opt/chromedriver/chromedriver \
&& ln -fs /opt/chromedriver/chromedriver /usr/local/bin/chromedriver
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
Expand Down

0 comments on commit eedb75d

Please sign in to comment.