@@ -21,6 +21,7 @@ FROM koalaman/shellcheck:stable as shellcheck
2121FROM mvdan/shfmt:latest-alpine as shfmt
2222FROM hadolint/hadolint:v2.12.0-alpine as hadolint
2323FROM mstruebing/editorconfig-checker:2.7.0 as editorconfig-checker
24+ FROM ghcr.io/yannh/kubeconform:latest-alpine as kubeconform
2425FROM ghcr.io/phpstan/phpstan:latest-php8.1 as phpstan
2526FROM yoheimuta/protolint:latest as protolint
2627FROM zricethezav/gitleaks:v8.16.3 as gitleaks
@@ -90,7 +91,6 @@ RUN apk add --update --no-cache \
9091 nodejs \
9192 npm \
9293 yarn \
93- go \
9494 helm \
9595 gcompat \
9696 libc-dev \
@@ -238,6 +238,7 @@ COPY --link --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
238238COPY --link --from=shfmt /bin/shfmt /usr/bin/
239239COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
240240COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
241+ COPY --link --from=kubeconform /kubeconform /usr/bin/
241242COPY --link --from=phpstan /composer/vendor/phpstan/phpstan/phpstan.phar /usr/bin/phpstan
242243COPY --link --from=protolint /usr/local/bin/protolint /usr/bin/
243244COPY --link --from=gitleaks /usr/bin/gitleaks /usr/bin/
@@ -297,7 +298,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
297298 mv "ktlint" /usr/bin/ \
298299
299300# kubeconform installation
300- && go install github.com/yannh/ kubeconform/cmd/kubeconform@latest \
301+ # Managed with COPY --link --from=kubeconform / kubeconform /usr/bin/
301302
302303# kubescape installation
303304 && curl --retry 5 --retry-delay 5 -sLv https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh | /bin/bash
0 commit comments