1+ # syntax=docker/dockerfile:1
12# ##########################################
23# ##########################################
34# # Dockerfile to run MegaLinter ##
@@ -292,26 +293,26 @@ ENV PATH="/root/.cargo/bin:${PATH}"
292293# ############################################################################################
293294
294295# COPY__START
295- COPY --from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
296+ COPY --link -- from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
296297# shellcheck is a dependency for actionlint
297- COPY --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
298-
299- COPY --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
300- COPY --from=shfmt /bin/shfmt /usr/bin/
301- COPY --from=clj-kondo /bin/clj-kondo /usr/bin/
302- COPY --from=hadolint /bin/hadolint /usr/bin/hadolint
303- COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
304- COPY --from=revive /usr/bin/revive /usr/bin/revive
305- COPY --from=chktex /usr/bin/chktex /usr/bin/
306- COPY --from=checkmake /checkmake /usr/bin/checkmake
307- COPY --from=protolint /usr/local/bin/protolint /usr/bin/
308- COPY --from=dustilock /usr/bin/dustilock /usr/bin/dustilock
309- COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/
310- COPY --from=tflint /usr/local/bin/tflint /usr/bin/
311- COPY --from=terrascan /go/bin/terrascan /usr/bin/
312- COPY --from=terragrunt /usr/local/bin/terragrunt /usr/bin/
313- COPY --from=terragrunt /bin/terraform /usr/bin/
314- COPY --from=kics /app/bin/kics /usr/bin/
298+ COPY --link -- from=shellcheck /bin/shellcheck /usr/bin/shellcheck
299+
300+ COPY --link -- from=shellcheck /bin/shellcheck /usr/bin/shellcheck
301+ COPY --link -- from=shfmt /bin/shfmt /usr/bin/
302+ COPY --link -- from=clj-kondo /bin/clj-kondo /usr/bin/
303+ COPY --link -- from=hadolint /bin/hadolint /usr/bin/hadolint
304+ COPY --link -- from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
305+ COPY --link -- from=revive /usr/bin/revive /usr/bin/revive
306+ COPY --link -- from=chktex /usr/bin/chktex /usr/bin/
307+ COPY --link -- from=checkmake /checkmake /usr/bin/checkmake
308+ COPY --link -- from=protolint /usr/local/bin/protolint /usr/bin/
309+ COPY --link -- from=dustilock /usr/bin/dustilock /usr/bin/dustilock
310+ COPY --link -- from=gitleaks /usr/bin/gitleaks /usr/bin/
311+ COPY --link -- from=tflint /usr/local/bin/tflint /usr/bin/
312+ COPY --link -- from=terrascan /go/bin/terrascan /usr/bin/
313+ COPY --link -- from=terragrunt /usr/local/bin/terragrunt /usr/bin/
314+ COPY --link -- from=terragrunt /bin/terraform /usr/bin/
315+ COPY --link -- from=kics /app/bin/kics /usr/bin/
315316COPY --from=kics /app/bin/assets /opt/kics/assets/
316317# COPY__END
317318
@@ -401,9 +402,9 @@ RUN echo y|sfdx plugins:install sfdx-hardis \
401402# ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
402403
403404# actionlint installation
404- # Managed with COPY --from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
405+ # Managed with COPY --link -- from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
405406# shellcheck is a dependency for actionlint
406- COPY --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
407+ COPY --link -- from=shellcheck /bin/shellcheck /usr/bin/shellcheck
407408
408409
409410# arm-ttk installation
@@ -419,18 +420,18 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
419420 && chmod +x /usr/bin/bash-exec \
420421
421422# shellcheck installation
422- # Managed with COPY --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
423+ # Managed with COPY --link -- from=shellcheck /bin/shellcheck /usr/bin/shellcheck
423424
424425# shfmt installation
425- # Managed with COPY --from=shfmt /bin/shfmt /usr/bin/
426+ # Managed with COPY --link -- from=shfmt /bin/shfmt /usr/bin/
426427
427428# bicep_linter installation
428429 && curl --retry 5 --retry-delay 5 -sLo ${BICEP_EXE} "${BICEP_URI}" \
429430 && chmod +x "${BICEP_EXE}" \
430431 && mv "${BICEP_EXE}" "${BICEP_DIR}" \
431432
432433# clj-kondo installation
433- # Managed with COPY --from=clj-kondo /bin/clj-kondo /usr/bin/
434+ # Managed with COPY --link -- from=clj-kondo /bin/clj-kondo /usr/bin/
434435
435436# csharpier installation
436437 && /usr/share/dotnet/dotnet tool install -g csharpier \
@@ -445,10 +446,10 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
445446 && rm -r dart-sdk/ \
446447
447448# hadolint installation
448- # Managed with COPY --from=hadolint /bin/hadolint /usr/bin/hadolint
449+ # Managed with COPY --link -- from=hadolint /bin/hadolint /usr/bin/hadolint
449450
450451# editorconfig-checker installation
451- # Managed with COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
452+ # Managed with COPY --link -- from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
452453
453454# dotenv-linter installation
454455 && wget -q -O - https://raw.githubusercontent.com/dotenv-linter/dotenv-linter/master/install.sh | sh -s \
@@ -459,7 +460,7 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
459460
460461
461462# revive installation
462- # Managed with COPY --from=revive /usr/bin/revive /usr/bin/revive
463+ # Managed with COPY --link -- from=revive /usr/bin/revive /usr/bin/revive
463464
464465# checkstyle installation
465466RUN --mount=type=secret,id=GITHUB_TOKEN CHECKSTYLE_LATEST=$(curl -s \
@@ -505,7 +506,7 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
505506 && find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
506507
507508# chktex installation
508- # Managed with COPY --from=chktex /usr/bin/chktex /usr/bin/
509+ # Managed with COPY --link -- from=chktex /usr/bin/chktex /usr/bin/
509510 && cd ~ && touch .chktexrc && cd / \
510511
511512# luacheck installation
@@ -524,7 +525,7 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
524525 && cd / \
525526
526527# checkmake installation
527- # Managed with COPY --from=checkmake /checkmake /usr/bin/checkmake
528+ # Managed with COPY --link -- from=checkmake /checkmake /usr/bin/checkmake
528529
529530# perlcritic installation
530531 && curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wget Perl::Critic
@@ -553,7 +554,7 @@ RUN composer global require --ignore-platform-reqs overtrue/phplint ^5.3 \
553554# RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'
554555
555556# protolint installation
556- # Managed with COPY --from=protolint /usr/local/bin/protolint /usr/bin/
557+ # Managed with COPY --link -- from=protolint /usr/local/bin/protolint /usr/bin/
557558
558559# lintr installation
559560 && mkdir -p /home/r-library \
@@ -581,10 +582,10 @@ ENV PATH="~/.raku/bin:/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$
581582RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI \
582583
583584# dustilock installation
584- # Managed with COPY --from=dustilock /usr/bin/dustilock /usr/bin/dustilock
585+ # Managed with COPY --link -- from=dustilock /usr/bin/dustilock /usr/bin/dustilock
585586
586587# gitleaks installation
587- # Managed with COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/
588+ # Managed with COPY --link -- from=gitleaks /usr/bin/gitleaks /usr/bin/
588589
589590# syft installation
590591 && curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin \
@@ -630,19 +631,19 @@ RUN dotnet tool install --global Microsoft.CST.DevSkim.CLI \
630631 && dotnet tool install --global TSQLLint \
631632
632633# tflint installation
633- # Managed with COPY --from=tflint /usr/local/bin/tflint /usr/bin/
634+ # Managed with COPY --link -- from=tflint /usr/local/bin/tflint /usr/bin/
634635
635636# terrascan installation
636- # Managed with COPY --from=terrascan /go/bin/terrascan /usr/bin/
637+ # Managed with COPY --link -- from=terrascan /go/bin/terrascan /usr/bin/
637638
638639# terragrunt installation
639- # Managed with COPY --from=terragrunt /usr/local/bin/terragrunt /usr/bin/
640+ # Managed with COPY --link -- from=terragrunt /usr/local/bin/terragrunt /usr/bin/
640641
641642# terraform-fmt installation
642- # Managed with COPY --from=terragrunt /bin/terraform /usr/bin/
643+ # Managed with COPY --link -- from=terragrunt /bin/terraform /usr/bin/
643644
644645# kics installation
645- # Managed with COPY --from=kics /app/bin/kics /usr/bin/
646+ # Managed with COPY --link -- from=kics /app/bin/kics /usr/bin/
646647 && mkdir -p /opt/kics/assets
647648ENV KICS_QUERIES_PATH=/opt/kics/assets/queries KICS_LIBRARIES_PATH=/opt/kics/assets/libraries
648649# Managed with COPY --from=kics /app/bin/assets /opt/kics/assets/
0 commit comments