mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-02 21:50:57 -05:00
chore: reduce container image size
This commit is contained in:
parent
7b18a58c94
commit
0e434785b7
18 changed files with 47 additions and 35 deletions
50
Dockerfile
50
Dockerfile
|
@ -373,8 +373,35 @@ COPY --from=clj-kondo /bin/clj-kondo /usr/bin/
|
||||||
# Install dart-sdk #
|
# Install dart-sdk #
|
||||||
####################
|
####################
|
||||||
ENV DART_SDK=/usr/lib/dart
|
ENV DART_SDK=/usr/lib/dart
|
||||||
COPY --from=dart "${DART_SDK}" "${DART_SDK}"
|
# These COPY directives may be compacted after --parents is supported
|
||||||
RUN chmod 755 "${DART_SDK}" && chmod 755 "${DART_SDK}/bin"
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/version" \
|
||||||
|
"${DART_SDK}"/
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/bin/dart" \
|
||||||
|
"${DART_SDK}/bin/dart.sym" \
|
||||||
|
"${DART_SDK}/bin"/
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/bin/snapshots/analysis_server.dart.snapshot" \
|
||||||
|
"${DART_SDK}/bin/snapshots/dartdev.dart.snapshot" \
|
||||||
|
"${DART_SDK}/bin/snapshots/frontend_server_aot.dart.snapshot" \
|
||||||
|
"${DART_SDK}/bin/snapshots"/
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/lib/_internal" \
|
||||||
|
"${DART_SDK}/lib/_internal"
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/lib/async" \
|
||||||
|
"${DART_SDK}/lib/async"
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/lib/convert" \
|
||||||
|
"${DART_SDK}/lib/convert"
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/lib/core" \
|
||||||
|
"${DART_SDK}/lib/core"
|
||||||
|
COPY --from=dart --chmod=0755 \
|
||||||
|
"${DART_SDK}/lib/io" \
|
||||||
|
"${DART_SDK}/lib/io"
|
||||||
|
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Install clang-format #
|
# Install clang-format #
|
||||||
|
@ -405,22 +432,7 @@ COPY --from=dotenv-linter /dotenv-linter /usr/bin/
|
||||||
#########################
|
#########################
|
||||||
# Configure Environment #
|
# Configure Environment #
|
||||||
#########################
|
#########################
|
||||||
ENV PATH="${PATH}:/venvs/ansible-lint/bin"
|
ENV PATH="${PATH}:/venvs/combined/bin"
|
||||||
ENV PATH="${PATH}:/venvs/black/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/checkov/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/cfn-lint/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/cpplint/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/flake8/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/isort/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/mypy/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/pyink/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/pylint/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/ruff/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/snakefmt/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/snakemake/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/sqlfluff/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/yamllint/bin"
|
|
||||||
ENV PATH="${PATH}:/venvs/yq/bin"
|
|
||||||
ENV PATH="${PATH}:/node_modules/.bin"
|
ENV PATH="${PATH}:/node_modules/.bin"
|
||||||
ENV PATH="${PATH}:/usr/lib/go/bin"
|
ENV PATH="${PATH}:/usr/lib/go/bin"
|
||||||
ENV PATH="${PATH}:${DART_SDK}/bin:/root/.pub-cache/bin"
|
ENV PATH="${PATH}:${DART_SDK}/bin:/root/.pub-cache/bin"
|
||||||
|
@ -485,7 +497,7 @@ ARG TARGETARCH
|
||||||
ENV ARM_TTK_PSD1="/usr/lib/microsoft/arm-ttk/arm-ttk.psd1"
|
ENV ARM_TTK_PSD1="/usr/lib/microsoft/arm-ttk/arm-ttk.psd1"
|
||||||
ENV PATH="${PATH}:/var/cache/dotnet/tools:/usr/share/dotnet"
|
ENV PATH="${PATH}:/var/cache/dotnet/tools:/usr/share/dotnet"
|
||||||
|
|
||||||
# Install super-linter runtime dependencies
|
# Install Rust linters
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
rust-clippy \
|
rust-clippy \
|
||||||
rustfmt
|
rustfmt
|
||||||
|
|
1
dependencies/python/ansible-lint.txt
vendored
1
dependencies/python/ansible-lint.txt
vendored
|
@ -1 +0,0 @@
|
||||||
ansible-lint==24.10.0
|
|
1
dependencies/python/black.txt
vendored
1
dependencies/python/black.txt
vendored
|
@ -1 +0,0 @@
|
||||||
black==24.10.0
|
|
1
dependencies/python/cfn-lint.txt
vendored
1
dependencies/python/cfn-lint.txt
vendored
|
@ -1 +0,0 @@
|
||||||
cfn-lint==1.19.0
|
|
1
dependencies/python/checkov.txt
vendored
1
dependencies/python/checkov.txt
vendored
|
@ -1 +0,0 @@
|
||||||
checkov==3.2.295
|
|
16
dependencies/python/combined.txt
vendored
Normal file
16
dependencies/python/combined.txt
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
ansible-lint==24.10.0
|
||||||
|
black==24.10.0
|
||||||
|
cfn-lint==1.19.0
|
||||||
|
checkov==3.2.295
|
||||||
|
cpplint==2.0.0
|
||||||
|
flake8==7.1.1
|
||||||
|
isort==5.13.2
|
||||||
|
mypy==1.13.0
|
||||||
|
pyink==24.10.0
|
||||||
|
pylint==3.3.1
|
||||||
|
ruff==0.7.3
|
||||||
|
snakefmt==0.10.2
|
||||||
|
snakemake==8.25.3
|
||||||
|
sqlfluff==3.2.5
|
||||||
|
yamllint==1.35.1
|
||||||
|
yq==3.4.3
|
1
dependencies/python/cpplint.txt
vendored
1
dependencies/python/cpplint.txt
vendored
|
@ -1 +0,0 @@
|
||||||
cpplint==2.0.0
|
|
1
dependencies/python/flake8.txt
vendored
1
dependencies/python/flake8.txt
vendored
|
@ -1 +0,0 @@
|
||||||
flake8==7.1.1
|
|
1
dependencies/python/isort.txt
vendored
1
dependencies/python/isort.txt
vendored
|
@ -1 +0,0 @@
|
||||||
isort==5.13.2
|
|
1
dependencies/python/mypy.txt
vendored
1
dependencies/python/mypy.txt
vendored
|
@ -1 +0,0 @@
|
||||||
mypy==1.13.0
|
|
1
dependencies/python/pyink.txt
vendored
1
dependencies/python/pyink.txt
vendored
|
@ -1 +0,0 @@
|
||||||
pyink==24.10.0
|
|
1
dependencies/python/pylint.txt
vendored
1
dependencies/python/pylint.txt
vendored
|
@ -1 +0,0 @@
|
||||||
pylint==3.3.1
|
|
1
dependencies/python/ruff.txt
vendored
1
dependencies/python/ruff.txt
vendored
|
@ -1 +0,0 @@
|
||||||
ruff==0.7.3
|
|
1
dependencies/python/snakefmt.txt
vendored
1
dependencies/python/snakefmt.txt
vendored
|
@ -1 +0,0 @@
|
||||||
snakefmt==0.10.2
|
|
1
dependencies/python/snakemake.txt
vendored
1
dependencies/python/snakemake.txt
vendored
|
@ -1 +0,0 @@
|
||||||
snakemake==8.25.3
|
|
1
dependencies/python/sqlfluff.txt
vendored
1
dependencies/python/sqlfluff.txt
vendored
|
@ -1 +0,0 @@
|
||||||
sqlfluff==3.2.5
|
|
1
dependencies/python/yamllint.txt
vendored
1
dependencies/python/yamllint.txt
vendored
|
@ -1 +0,0 @@
|
||||||
yamllint==1.35.1
|
|
1
dependencies/python/yq.txt
vendored
1
dependencies/python/yq.txt
vendored
|
@ -1 +0,0 @@
|
||||||
yq==3.4.3
|
|
Loading…
Reference in a new issue