diff --git a/azure-cli/Dockerfile b/azure-cli/Dockerfile index e4152a6..485ec92 100644 --- a/azure-cli/Dockerfile +++ b/azure-cli/Dockerfile @@ -1,19 +1,18 @@ -FROM debian:jessie +FROM python:3-alpine LABEL maintainer "Jessie Frazelle " -RUN apt-get update && apt-get install -y \ - apt-transport-https \ - ca-certificates \ - gnupg \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache \ + bash -RUN apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ - && echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" >> /etc/apt/sources.list.d/azure-cli.list - -RUN apt-get update && apt-get install -y \ - azure-cli \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* +RUN set -x \ + && apk add --no-cache --virtual .build-deps \ + build-base \ + libffi-dev \ + openssl-dev \ + && pip install --upgrade \ + --pre azure-cli \ + --extra-index-url https://azurecliprod.blob.core.windows.net/edge \ + --no-cache-dir \ + && apk del .build-deps ENTRYPOINT [ "az" ]