2017-10-01 00:23:32 +00:00
|
|
|
FROM ubuntu:16.04
|
2016-08-27 08:29:20 +00:00
|
|
|
|
2018-12-09 12:29:31 +00:00
|
|
|
# Make sure that all updates are in place
|
|
|
|
RUN apt-get clean && apt-get update -y && apt-get upgrade -y \
|
|
|
|
&& apt-get dist-upgrade -y && apt-get autoremove -y
|
|
|
|
|
|
|
|
# Install needed packages
|
|
|
|
RUN apt-get install git python-dev build-essential \
|
|
|
|
libffi-dev libssl-dev libfuzzy-dev wget sudo -y
|
2017-10-01 00:23:32 +00:00
|
|
|
|
|
|
|
# Adding sudo command
|
|
|
|
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
|
|
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
|
2017-10-01 00:29:56 +00:00
|
|
|
# Installing AIL dependencies
|
2018-12-09 12:29:31 +00:00
|
|
|
RUN mkdir /opt/AIL
|
2016-08-27 08:29:20 +00:00
|
|
|
ADD . /opt/AIL
|
|
|
|
WORKDIR /opt/AIL
|
2017-10-01 00:23:32 +00:00
|
|
|
RUN ./installing_deps.sh
|
2017-10-01 00:29:56 +00:00
|
|
|
WORKDIR /opt/AIL
|
|
|
|
|
|
|
|
# Installing Web dependencies,
|
|
|
|
# remove all the parts below if you dont need the Web UI
|
2017-10-01 00:23:32 +00:00
|
|
|
WORKDIR /opt/AIL/var/www
|
|
|
|
RUN ./update_thirdparty.sh
|
|
|
|
WORKDIR /opt/AIL
|
|
|
|
|
2018-06-22 20:57:35 +00:00
|
|
|
# Default to UTF-8 file.encoding
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2018-09-03 14:01:39 +00:00
|
|
|
RUN ./pystemon/install.sh
|
|
|
|
|
2018-09-04 07:20:57 +00:00
|
|
|
COPY docker_start.sh /docker_start.sh
|
|
|
|
ENTRYPOINT ["/bin/bash", "docker_start.sh"]
|