alpine-ansible-lint/Dockerfile: update

This commit is contained in:
Haitao Pan 2024-03-23 15:21:01 +08:00
parent 176f7b6170
commit f862e8b392

View File

@ -19,10 +19,12 @@ RUN apk add --update --no-cache curl binutils \
&& rm -rf /var/cache/apk/*
# Install system dependencies
RUN apk add --no-cache git python3 py3-pip
RUN apk add --no-cache python3 py3-pip jq \
&& pip3 install --upgrade pip \
&& pip3 install hvac jinja2 ansible ansible-lint \
&& ansible-galaxy collection install community.hashi_vault
# Install ansible-lint
RUN pip3 install --upgrade pip && pip3 install ansible-lint
# Set work directory
WORKDIR /src