From 1fc531d47c331f74e7670632acc177d23fcec84b Mon Sep 17 00:00:00 2001 From: Oluf Lorenzen Date: Mon, 8 Jul 2024 10:25:16 +0200 Subject: [PATCH] docker-alpine: install jp from repos jp is available in the normal repositories: https://pkgs.alpinelinux.org/packages?name=jp&branch=v3.19&repo=&arch=x86_64&maintainer= --- alpine.dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/alpine.dockerfile b/alpine.dockerfile index dbc8756e2e9..d66f183d8ca 100644 --- a/alpine.dockerfile +++ b/alpine.dockerfile @@ -34,13 +34,11 @@ LABEL maintainer="Microsoft" \ ARG JP_VERSION="0.2.1" -RUN --mount=type=bind,target=/azure-cli,source=./,rw apk add --no-cache ca-certificates bash bash-completion libintl icu-libs libc6-compat jq openssh-keygen \ +RUN --mount=type=bind,target=/azure-cli,source=./,rw apk add --no-cache ca-certificates bash bash-completion libintl icu-libs libc6-compat jp jq openssh-keygen \ && apk add --no-cache --virtual .build-deps gcc musl-dev linux-headers libffi-dev curl \ && update-ca-certificates && cd /azure-cli && ./scripts/install_full.sh && python ./scripts/trim_sdk.py \ && cat /azure-cli/az.completion > ~/.bashrc \ && dos2unix /root/.bashrc /usr/local/bin/az \ - && arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && curl -L https://github.com/jmespath/jp/releases/download/${JP_VERSION}/jp-linux-$arch -o /usr/local/bin/jp \ - && chmod +x /usr/local/bin/jp \ && apk del .build-deps RUN rm -rf /azure-cli