Update Dockerfile: use ubuntu 18, remove redundant update_thirdparty, remove old crawler requirements pip install

This commit is contained in:
Pietro Mazzini 2020-07-25 11:04:16 +02:00
parent d4745e835b
commit a52ae937df

View file

@ -1,4 +1,6 @@
FROM ubuntu:16.04 FROM ubuntu:18.04
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Make sure that all updates are in place # Make sure that all updates are in place
RUN apt-get clean && apt-get update -y && apt-get upgrade -y \ RUN apt-get clean && apt-get update -y && apt-get upgrade -y \
@ -19,12 +21,6 @@ WORKDIR /opt/AIL
RUN ./installing_deps.sh RUN ./installing_deps.sh
WORKDIR /opt/AIL WORKDIR /opt/AIL
# Installing Web dependencies,
# remove all the parts below if you dont need the Web UI
WORKDIR /opt/AIL/var/www
RUN ./update_thirdparty.sh
WORKDIR /opt/AIL
# Default to UTF-8 file.encoding # Default to UTF-8 file.encoding
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV AIL_HOME /opt/AIL ENV AIL_HOME /opt/AIL
@ -38,7 +34,6 @@ ENV PATH ${AIL_VENV}/bin:${AIL_HOME}:${AIL_REDIS}:${AIL_ARDB}:${AIL_BIN}:${AIL_F
RUN ./pystemon/install.sh RUN ./pystemon/install.sh
RUN pip install -r /opt/pystemon/requirements.txt RUN pip install -r /opt/pystemon/requirements.txt
RUN pip install -r /opt/AIL/crawler_requirements.txt
COPY docker_start.sh /docker_start.sh COPY docker_start.sh /docker_start.sh
ENTRYPOINT ["/bin/bash", "docker_start.sh"] ENTRYPOINT ["/bin/bash", "docker_start.sh"]