Skip to content
Dockerfile 806 B
Newer Older
Дмитрий Сафронов's avatar
Дмитрий Сафронов committed
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
Дмитрий Сафронов's avatar
Дмитрий Сафронов committed
WORKDIR /opt/ansible
Дмитрий Сафронов's avatar
Дмитрий Сафронов committed
CMD [ "ansible", "--version" ]