diff --git a/Dockerfile.linux.amd64 b/Dockerfile.linux.amd64 index 9889b64..26d5533 100644 --- a/Dockerfile.linux.amd64 +++ b/Dockerfile.linux.amd64 @@ -1,14 +1,14 @@ -# alpine version -FROM alpine:3.18 - # renovate: datasource=pypi depName=ansible-core versioning=pep440 -ENV ANSIBLE_VERSION=2.13.11 +ARG ANSIBLE_VERSION=2.13.11 # renovate: datasource=pypi depName=ansible-lint versioning=pep440 -ENV ANSIBLE_LINT_VERSION=6.22.0 +ARG ANSIBLE_LINT_VERSION=6.22.0 # renovate: datasource=pypi depName=yamllint versioning=pep440 -ENV YAMLLINT_VERSION=1.32.0 +ARG YAMLLINT_VERSION=1.32.0 + +# alpine version +FROM alpine:3.18 # install software RUN apk update @@ -25,6 +25,11 @@ RUN apk add --no-cache \ # cleanup RUN rm -rf /var/cache/apk/* +# arguments +ARG ANSIBLE_VERSION +ARG ANSIBLE_LINT_VERSION +ARG YAMLLINT_VERSION + # install ansible + linters RUN pip3 install --upgrade pip RUN pip3 install --use-pep517 --ignore-installed \