/
Dockerfile
39 lines (35 loc) · 968 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM alpine:3.14
RUN CARGO_NET_GIT_FETCH_WITH_CLI=1 && \
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 \
musl-dev \
gcc \
cargo \
openssl-dev \
libressl-dev \
build-base && \
pip install --upgrade pip wheel && \
pip install --upgrade cryptography cffi && \
pip install ansible==2.9.24 && \
pip install mitogen ansible-lint jmespath && \
pip install --upgrade pywinrm && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/pip && \
rm -rf /root/.cargo
RUN mkdir /ansible && \
mkdir -p /etc/ansible && \
echo 'localhost' > /etc/ansible/hosts
WORKDIR /ansible
CMD [ "ansible-playbook", "--version" ]