diff --git a/.automation/build.py b/.automation/build.py index 36735e54505..4fe7893e7e3 100644 --- a/.automation/build.py +++ b/.automation/build.py @@ -448,7 +448,7 @@ def build_dockerfile( apk_install_command = "" if len(apk_packages) > 0: apk_install_command = ( - "RUN apk add --update --no-cache \\\n " + "RUN apk add --no-cache \\\n " + " \\\n ".join(list(dict.fromkeys(apk_packages))) + " \\\n && git config --global core.autocrlf true" ) diff --git a/Dockerfile b/Dockerfile index 0b93a18f56e..c27a8be0b33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,7 +78,7 @@ WORKDIR / ## @generated by .automation/build.py using descriptor files, please do not update manually ## ############################################################################################# #APK__START -RUN apk add --update --no-cache \ +RUN apk add --no-cache \ bash \ ca-certificates \ curl \