mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
fix azure-cli
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
4c453b48dc
commit
63542a170e
|
@ -1,19 +1,18 @@
|
||||||
FROM debian:jessie
|
FROM python:3-alpine
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apk add --no-cache \
|
||||||
apt-transport-https \
|
bash
|
||||||
ca-certificates \
|
|
||||||
gnupg \
|
|
||||||
--no-install-recommends \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \
|
RUN set -x \
|
||||||
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" >> /etc/apt/sources.list.d/azure-cli.list
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
|
build-base \
|
||||||
RUN apt-get update && apt-get install -y \
|
libffi-dev \
|
||||||
azure-cli \
|
openssl-dev \
|
||||||
--no-install-recommends \
|
&& pip install --upgrade \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
--pre azure-cli \
|
||||||
|
--extra-index-url https://azurecliprod.blob.core.windows.net/edge \
|
||||||
|
--no-cache-dir \
|
||||||
|
&& apk del .build-deps
|
||||||
|
|
||||||
ENTRYPOINT [ "az" ]
|
ENTRYPOINT [ "az" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user