2017-10-01 02:23:32 +02:00
|
|
|
FROM ubuntu:16.04
|
2016-08-27 10:29:20 +02:00
|
|
|
|
|
|
|
RUN mkdir /opt/AIL && apt-get update -y \
|
|
|
|
&& apt-get install git python-dev build-essential \
|
2017-10-01 02:23:32 +02:00
|
|
|
libffi-dev libssl-dev libfuzzy-dev wget sudo -y
|
|
|
|
|
|
|
|
# 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 02:29:56 +02:00
|
|
|
# Installing AIL dependencies
|
2016-08-27 10:29:20 +02:00
|
|
|
ADD . /opt/AIL
|
|
|
|
WORKDIR /opt/AIL
|
2017-10-01 02:23:32 +02:00
|
|
|
RUN ./installing_deps.sh
|
2017-10-01 02:29:56 +02:00
|
|
|
WORKDIR /opt/AIL
|
|
|
|
|
|
|
|
# Installing Web dependencies,
|
|
|
|
# remove all the parts below if you dont need the Web UI
|
2017-10-01 02:23:32 +02:00
|
|
|
WORKDIR /opt/AIL/var/www
|
|
|
|
RUN ./update_thirdparty.sh
|
|
|
|
WORKDIR /opt/AIL
|
|
|
|
|
2018-06-22 22:57:35 +02:00
|
|
|
# Default to UTF-8 file.encoding
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2016-08-27 10:29:20 +02:00
|
|
|
CMD bash docker_start.sh
|