You've already forked wakapi-readme-stats
27 lines
825 B
Docker
27 lines
825 B
Docker
FROM ubuntu:latest
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install dependencies.
|
|
ADD requirements.txt /requirements.txt
|
|
ADD main.py /main.py
|
|
ADD loc.py /loc.py
|
|
ADD make_bar_graph.py /make_bar_graph.py
|
|
ADD colors.json /colors.json
|
|
|
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
|
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
|
|
RUN apt-get -y update
|
|
RUN apt-get install -y google-chrome-stable
|
|
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y python3-pip python3-dev \
|
|
&& cd /usr/local/bin \
|
|
&& ln -s /usr/bin/python3 python \
|
|
&& pip3 install --upgrade pip
|
|
RUN apt-get -y install chromium-chromedriver
|
|
RUN pip3 install -r requirements.txt
|
|
RUN pip3 install selenium
|
|
ENTRYPOINT ["python", "/main.py"]
|