1+ # syntax=docker/dockerfile:1
12# ##########################################
23# ##########################################
34# # Dockerfile to run MegaLinter ##
1011# # @generated by .automation/build.py using descriptor files, please do not update manually ##
1112# ############################################################################################
1213# FROM__START
14+ FROM rhysd/actionlint:latest as actionlint
15+ # shellcheck is a dependency for actionlint and the FROM command may be safely repeated in a Dockerfile
16+ FROM koalaman/shellcheck:stable as shellcheck
1317
1418# FROM__END
1519
@@ -47,7 +51,7 @@ RUN apk add --update --no-cache \
4751 make \
4852 musl-dev \
4953 openssh \
50- go \
54+ py3-pyflakes \
5155 && git config --global core.autocrlf true
5256# APK__END
5357
@@ -115,6 +119,9 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
115119# ############################################################################################
116120
117121# COPY__START
122+ COPY --link --from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
123+ # shellcheck is a dependency for actionlint
124+ COPY --link --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
118125
119126# COPY__END
120127
@@ -123,8 +130,10 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
123130# ############################################################################################
124131# OTHER__START
125132# actionlint installation
126- ENV GO111MODULE=on
127- RUN go install github.com/rhysd/actionlint/cmd/actionlint@latest && go clean --cache
133+ # Managed with COPY --link --from=actionlint /usr/local/bin/actionlint /usr/bin/actionlint
134+ # shellcheck is a dependency for actionlint
135+ COPY --link --from=shellcheck /bin/shellcheck /usr/bin/shellcheck
136+
128137
129138# OTHER__END
130139
0 commit comments