0
0
docker-images/dockerfiles/ansible.Dockerfile
Opnxng 0b18d6ab7a
Some checks failed
ansible / build (push) Has been cancelled
etherpad / build (push) Has been cancelled
offtiktokapi / build (push) Successful in 3m48s
Added Offtiktokapi
2024-08-08 21:55:43 +08:00

45 lines
923 B
Docker
Executable File

FROM python:slim
LABEL maintainer="opnxng" \
org.label-schema.description="Ansible inside Docker"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
openssh-client \
sshpass \
locales \
sshpass \
bash \
git \
curl \
rsync \
zsh \
nano \
sudo \
less \
gcc \
python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man
RUN pip3 install --no-cache-dir \
ansible \
passlib \
ara \
hvac \
dnspython \
jmespath \
"hvac[parser]" \
certifi \
ansible-lint \
ansible-modules-hashivault && \
rm -rf /root/.cache/pip
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
RUN locale-gen en_US.UTF-8
ENV ANSIBLE_FORCE_COLOR true