Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Split long RUN instructions into multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Aug 16, 2024
1 parent 6094632 commit f1f9518
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ ENV GNUPG_VERSION=2.2.40-1.1

RUN apt-get update -y && \
# Install necessary dependencies
apt-get install -y --no-install-recommends curl=${CURL_VERSION} gnupg=${GNUPG_VERSION} lsb-release=${LSBRELEASE_VERSION} && \
apt-get install -y --no-install-recommends \
curl=${CURL_VERSION} \
gnupg=${GNUPG_VERSION} \
lsb-release=${LSBRELEASE_VERSION} && \
# Add Azure CLI public key
curl --proto "=https" -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
curl --proto "=https" -sL https://packages.microsoft.com/keys/microsoft.asc \
| gpg --dearmor \
> /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
AZ_REPO=$(lsb_release -cs) && \
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" > /etc/apt/sources.list.d/azure-cli.list

Expand Down

0 comments on commit f1f9518

Please sign in to comment.