-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile_1.10.0
26 lines (19 loc) · 962 Bytes
/
Dockerfile_1.10.0
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
# syntax = docker/dockerfile:1.3
FROM mkaczanowski/packer-builder-arm
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt,id=apt \
apt update \
&& apt install software-properties-common gpg-agent --no-install-recommends -y \
&& add-apt-repository --yes --update ppa:ansible/ansible \
&& apt install ansible --no-install-recommends -y \
&& ansible-galaxy collection install ansible.posix \
# install other Ansible roles here if needed
&& ansible-galaxy install geerlingguy.pip \
&& ansible-galaxy install geerlingguy.supervisor \
&& ansible-galaxy collection install community.general\
&& (rm -f /var/cache/apt/archives/*.deb \
/var/cache/apt/archives/partial/*.d:wq!eb /var/cache/apt/*.bin /var/lib/apt/lists/* || true)
ENTRYPOINT ["/bin/packer"]
# Install the latest version of the official plugins
RUN /bin/packer plugins install "github.com/hashicorp/ansible"
RUN /bin/packer init