]> git.immae.eu Git - github/fretlink/docker-ansible.git/blobdiff - master-debian8-onbuild/Dockerfile
Update: Alpine 3.3 to 3.4
[github/fretlink/docker-ansible.git] / master-debian8-onbuild / Dockerfile
index d3066e39b5c457e3ef1b65cf81e80ab7561d2b06..c9ce49393984a919388e6f31fa41f8c8c8c6f616 100644 (file)
@@ -12,14 +12,17 @@ FROM debian:jessie
 MAINTAINER William Yeh <william.pjyeh@gmail.com>
 
 
-RUN echo "===> Adding Ansible's prerequisites..."   && \
-    apt-get update -y            && \
+RUN echo "===> Adding Ansible's prerequisites..."         && \
+    apt-get update -y  &&  apt-get install --fix-missing  && \
     DEBIAN_FRONTEND=noninteractive  \
         apt-get install --no-install-recommends -y -q  \
                 build-essential ca-certificates        \
                 python-pip python-dev python-yaml      \
+                libffi-dev libssl-dev                  \
                 libxml2-dev libxslt1-dev zlib1g-dev    \
                 git sudo curl                       && \
+    apt-get -y --purge remove python-cffi           && \
+    pip install --upgrade cffi                      && \
     pip install --upgrade pyyaml jinja2 pycrypto    && \
     \
     \
@@ -40,16 +43,16 @@ RUN echo "===> Adding Ansible's prerequisites..."   && \
     rm -rf /ansible                      && \
     \
     \
-    echo "===> Clean up..."                                         && \
+    echo "===> Clean up..."                                                  && \
     apt-get remove -y --auto-remove \
-            build-essential python-pip python-dev git               && \
-    apt-get clean                                                   && \
-    rm -rf /var/lib/apt/lists/*                                     && \
+            build-essential python-pip python-dev git libffi-dev libssl-dev  && \
+    apt-get clean                                                            && \
+    rm -rf /var/lib/apt/lists/*                                              && \
     \
     \
     echo "===> Adding hosts for convenience..."  && \
     mkdir -p /etc/ansible                        && \
-    echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
+    echo 'localhost' > /etc/ansible/hosts
 
 
 ENV PATH        /opt/ansible/bin:$PATH