diff --git a/Dockerfile b/Dockerfile index d5c5fe0..241868b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:latest +FROM ubuntu:latest # Install dependencies. ADD requirements.txt /requirements.txt @@ -6,6 +6,13 @@ 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 pip install -r requirements.txt -RUN pip install selenium + +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 sudo apt-get install chromium-chromedriver +RUN pip3 install -r requirements.txt +RUN pip3 install selenium ENTRYPOINT ["python", "/main.py"]