[Alpine] Fix 3.19 support by adding --break-system-packages directivte to pip3 command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Cornet 2023-12-08 23:02:50 +01:00
parent 155544307b
commit f49e55bac0

View File

@ -8,7 +8,7 @@ ARG ANSIBLE_LINT_VERSION=6.22.0
ARG YAMLLINT_VERSION=1.33.0 ARG YAMLLINT_VERSION=1.33.0
# alpine version # alpine version
FROM alpine:3.18 FROM alpine:3.19
# install software # install software
RUN apk update RUN apk update
@ -31,8 +31,7 @@ ARG ANSIBLE_LINT_VERSION
ARG YAMLLINT_VERSION ARG YAMLLINT_VERSION
# install ansible + linters # install ansible + linters
RUN pip3 install --upgrade pip RUN pip3 install --use-pep517 --ignore-installed --break-system-packages \
RUN pip3 install --use-pep517 --ignore-installed \
ansible-core==${ANSIBLE_VERSION} \ ansible-core==${ANSIBLE_VERSION} \
ansible-lint==${ANSIBLE_LINT_VERSION} \ ansible-lint==${ANSIBLE_LINT_VERSION} \
yamllint==${YAMLLINT_VERSION} yamllint==${YAMLLINT_VERSION}