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

Split long RUN instructions into multiple lines #136

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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