diff --git a/Dockerfile b/Dockerfile index fde7c051f5..64ce1a2019 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,8 @@ RUN apt-get update \ tzdata \ jq \ && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 22 ]; then apt-get install -y --no-install-recommends skopeo; fi \ - && mkdir -p -m 755 /etc/apt/keyrings \ + && mkdir -p /etc/apt/keyrings \ + && chmod 0755 /etc /etc/apt /etc/apt/keyrings \ && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg >/dev/null \ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list >/dev/null \