41 lines
1015 B
Docker
41 lines
1015 B
Docker
|
#FROM alpine:latest AS download
|
||
|
|
||
|
FROM debian:11-slim
|
||
|
|
||
|
ENV LANG en_US.UTF-8
|
||
|
ENV LANGUAGE en_US:en
|
||
|
ENV LC_ALL en_US.UTF-8
|
||
|
|
||
|
RUN apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
||
|
curl \
|
||
|
git \
|
||
|
jq \
|
||
|
locales \
|
||
|
netcat-openbsd \
|
||
|
openssh-client \
|
||
|
# (python3-*) Dependency for installation of Ansible
|
||
|
python3-pip \
|
||
|
python3-setuptools \
|
||
|
python3-wheel \
|
||
|
yamllint && \
|
||
|
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
|
||
|
locale-gen && \
|
||
|
pip3 install --upgrade pip && \
|
||
|
pip3 install \
|
||
|
ansible-core \
|
||
|
# (jmespath) Dependency for Ansible 'json_query' filter
|
||
|
jmespath \
|
||
|
# (netaddr) Dependency for Ansible 'ipaddr' filter
|
||
|
netaddr \
|
||
|
# (pyvmomi & requests) Dependency for Ansible 'vmware_guest' module
|
||
|
pyvmomi \
|
||
|
requests && \
|
||
|
apt-get remove -y \
|
||
|
curl && \
|
||
|
apt-get autoremove -y && \
|
||
|
rm -rf /var/lib/apt/lists/* && \
|
||
|
rm -f /tmp/ovftool-installer
|
||
|
|
||
|
ENTRYPOINT []
|
||
|
CMD []
|