Skip to content
Snippets Groups Projects
Commit 3e946500 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Dockerfile

parent 1173f90e
Branches
No related tags found
3 merge requests!25Fix,!24Fix,!23Fix
Pipeline #2608 canceled
......@@ -15,14 +15,17 @@ RUN apk --no-cache add python3 && \
setuptools \
wheel \
&& \
( test -z $ANSIBLE_VERSION && \
pip install --ignore-installed --user --no-cache-dir ansible || \
pip install --ignore-installed --user --no-cache-dir ansible\<=$ANSIBLE_VERSION \
) && \
pip3 install --ignore-installed --no-cache-dir \
ansible \
ansible-lint \
mitogen \
jmespath \
pywinrm \
&& \
apk del build-dependencies && \
#apk del build-dependencies && \
rm -rf /var/cache/apk/*
FROM registry.cyberbrain.pw/docker/alpine:latest AS runtime
......@@ -35,6 +38,8 @@ RUN apk --no-cache add \
sshpass \
openssh-client \
rsync \
git
git \
&& \
rm -rf /var/cache/apk/*
COPY --from=builder /opt/ansible /opt/ansible
CMD [ "ansible", "--version" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment