From f26dea63669928429b32052d796114fc5002de8e Mon Sep 17 00:00:00 2001 From: Julien Godin Date: Tue, 30 Nov 2021 16:45:10 +0100 Subject: [PATCH] fix(azure-cli): remove .tar.gz from final image --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 213668f..22f0b3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ ENV KUBEVERSION=v1.20.13 RUN apk add jq rclone curl gcc musl-dev python3-dev libffi-dev openssl-dev cargo make py3-pip ca-certificates RUN python3 -m venv /data/azure-cli RUN source /data/azure-cli/bin/activate && pip install azure-cli -RUN tar -zcvf /azure-cli.tar.gz /data FROM vault RUN apk add jq rclone curl python3 ca-certificates -COPY --from=builder /azure-cli.tar.gz /data/azure-cli.tar.gz -RUN tar -zxvf /data/azure-cli.tar.gz +COPY --from=builder /data/azure-cli /data/azure-cli +ENV PYTHONPATH=/data/azure-cli +ENV PATH=/data/azure-cli/bin/:$PATH RUN curl -L "https://dl.k8s.io/release/${KUBEVERSION}/bin/linux/amd64/kubectl" -o /usr/bin/kubectl RUN chmod +x /usr/bin/kubectl