FROM ubuntu:latest # UGH, timezone issues RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone RUN apt-get update && apt-get install -y evince libcanberra-gtk-module && apt-get install -y xauth wget tar python3 python3-pip python3-setuptools python3-wheel python3-dev build-essential firefox ghostscript # Download gecko (firefox) driver for selenium RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz RUN tar -x geckodriver -zf geckodriver-v0.30.0-linux64.tar.gz -O > /usr/bin/geckodriver RUN chmod +x /usr/bin/geckodriver RUN rm geckodriver-v0.30.0-linux64.tar.gz RUN echo "127.0.0.1 localhost" >> /etc/hosts COPY requirements.txt /app/ RUN python3 -m pip install --upgrade pip && python3 -m pip install -r /app/requirements.txt RUN mkdir -p /app/auto_news COPY app /app/auto_news WORKDIR /app/auto_news ENTRYPOINT ["python3", "runner.py"]