mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
Merge pull request #297 from swedishmike/Dockerfile
Change to the Dockerfile
This commit is contained in:
commit
29249352a8
1 changed files with 8 additions and 3 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,14 +1,19 @@
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
RUN mkdir /opt/AIL && apt-get update -y \
|
# Make sure that all updates are in place
|
||||||
&& apt-get install git python-dev build-essential \
|
RUN apt-get clean && apt-get update -y && apt-get upgrade -y \
|
||||||
libffi-dev libssl-dev libfuzzy-dev wget sudo -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
|
||||||
|
|
||||||
# Adding sudo command
|
# Adding sudo command
|
||||||
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
||||||
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
||||||
# Installing AIL dependencies
|
# Installing AIL dependencies
|
||||||
|
RUN mkdir /opt/AIL
|
||||||
ADD . /opt/AIL
|
ADD . /opt/AIL
|
||||||
WORKDIR /opt/AIL
|
WORKDIR /opt/AIL
|
||||||
RUN ./installing_deps.sh
|
RUN ./installing_deps.sh
|
||||||
|
|
Loading…
Reference in a new issue