2018-05-29 05:13:00 +02:00
|
|
|
FROM python:3-alpine
|
2017-11-03 18:45:03 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
2018-05-29 05:13:00 +02:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
bash
|
2017-11-03 18:45:03 +01:00
|
|
|
|
2018-05-29 05:13:00 +02:00
|
|
|
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
|
2017-11-03 18:45:03 +01:00
|
|
|
|
2018-06-18 17:21:20 +02:00
|
|
|
# Add extentions
|
2018-11-20 19:43:33 +01:00
|
|
|
ENV AZURE_CLI_EXTENSION_NOELBUNDICK_VERSION 0.0.12
|
2018-06-18 17:21:20 +02:00
|
|
|
RUN az extension add -y \
|
|
|
|
--source "https://github.com/noelbundick/azure-cli-extension-noelbundick/releases/download/v${AZURE_CLI_EXTENSION_NOELBUNDICK_VERSION}/noelbundick-${AZURE_CLI_EXTENSION_NOELBUNDICK_VERSION}-py2.py3-none-any.whl"
|
|
|
|
|
2017-11-03 18:45:03 +01:00
|
|
|
ENTRYPOINT [ "az" ]
|