diff --git a/Dockerfile b/Dockerfile index b732a78..b3091c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,21 +2,24 @@ FROM python:latest ENV TZ Euopre/Zurich -RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list +# RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list +# allows the installation of the latest firefox-release (debian is not usually a rolling release) RUN apt-get update && apt-get install -y \ evince \ # for checking -xauth wget tar firefox \ -# for geckodriver + gui +xauth \ +#for gui +# wget tar firefox \ +# for geckodriver ghostscript # for compression # Download gecko (firefox) driver for selenium -RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz -RUN tar -x geckodriver -zf geckodriver-v0.31.0-linux64.tar.gz -O > /usr/bin/geckodriver -RUN chmod +x /usr/bin/geckodriver -RUN rm geckodriver-v0.31.0-linux64.tar.gz +# RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz +# RUN tar -x geckodriver -zf geckodriver-v0.31.0-linux64.tar.gz -O > /usr/bin/geckodriver +# RUN chmod +x /usr/bin/geckodriver +# RUN rm geckodriver-v0.31.0-linux64.tar.gz RUN useradd --create-home --shell /bin/bash --uid 1001 autonews diff --git a/README.md b/README.md index 690f940..0839c3d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,8 @@ All relevant passthroughs and mounts are specified through the env-file, for whi For the debug env-file, you will likely want interactivity, so you need to run: -`docker compose --env-file env/debug run auto_news` +`docker compose --env-file env/debug up -d && docker compose --env-file env/debug exec auto_news bash && docker compose --env-file env/debug down` +