Kubernetes/CICD/Ansible/Dockerfile

13 lines
303 B
Docker
Raw Normal View History

2024-08-07 10:54:39 +00:00
FROM ubuntu:22.04
VOLUME /root/.ssh
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt update && apt install ansible sshpass -y \
&& rm -rf /etc/localtime \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& mkdir -p /etc/ansible
VOLUME /etc/ansible
WORKDIR /etc/ansible