-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (28 loc) · 909 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
FROM hashicorp/packer:light as PACKER
FROM hashicorp/terraform:1.8.1 as TERRAFORM
FROM quay.io/coreos/butane:release as BUTANE
FROM ubuntu:noble
COPY --from=PACKER /bin/packer /bin/packer
COPY --from=TERRAFORM /bin/terraform /bin/terraform
COPY --from=BUTANE /usr/local/bin/butane /bin/butane
RUN \
apt-get update && \
apt-get install -y \
ansible \
ansible-lint \
ca-certificates \
colorized-logs \
curl \
genisoimage \
jq \
whois \
xorriso && \
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /bin && \
mkdir -p /work && \
apt-get clean
COPY ansible/requirements.yml /tmp/requirements.yml
RUN \
ansible-galaxy collection install -r /tmp/requirements.yml && \
rm -f /tmp/requirements.yml
WORKDIR /work
ENTRYPOINT ["/bin/task"]