From f29052832a9d87d49ec00523636b330eb5000915 Mon Sep 17 00:00:00 2001
From: Dmitriy Safronov <zimniy@cyberbrain.pw>
Date: Tue, 18 May 2021 17:39:06 +0300
Subject: [PATCH] new

---
 Dockerfile | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 8230fc3..e628ac1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,32 @@
-FROM pipelinecomponents/ansible-lint:latest
-
+FROM registry.cyberbrain.pw/docker/alpine:latest
+RUN apk --no-cache add \
+        sudo \
+        python3 \
+        py3-pip \
+        openssl \
+        ca-certificates \
+        sshpass \
+        openssh-client \
+        rsync \
+        git && \
+    apk --no-cache add --virtual build-dependencies \
+        python3-dev \
+        libffi-dev \
+        openssl-dev \
+        build-base && \
+    pip3 install --upgrade \
+        pip \
+        cffi \
+        wheel && \
+    pip3 install \
+        cryptography \
+        ansible \
+        mitogen ansible-lint jmespath \
+        pywinrm && \
+    apk del build-dependencies && \
+    rm -rf /var/cache/apk/*
+RUN mkdir -p /opt/ansible && \
+    mkdir -p /etc/ansible && \
+    echo 'localhost' > /etc/ansible/hosts
 WORKDIR /opt/ansible
-
-RUN apk add --no-cache git git-lfs openssh-client rsync
+CMD [ "ansible", "--version" ]
-- 
GitLab