Many bug fixes
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,18 +1,22 @@
|
||||
FROM ubuntu:latest
|
||||
# UGH, timezone issues
|
||||
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
|
||||
FROM python:latest
|
||||
|
||||
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
|
||||
RUN apt-get update && apt-get install -y \
|
||||
evince libcanberra-gtk-module \
|
||||
# for checking
|
||||
xauth wget tar firefox \
|
||||
# for geckodriver + gui
|
||||
ghostscript
|
||||
# for compression
|
||||
|
||||
# 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 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.30.0-linux64.tar.gz
|
||||
RUN rm geckodriver-v0.31.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 python3 -m pip install -r /app/requirements.txt
|
||||
|
||||
RUN mkdir -p /app/auto_news
|
||||
COPY app /app/auto_news
|
||||
|
Reference in New Issue
Block a user