22ARG AZURE_CLI_VERSION=2.7.0
33ARG TERRAFORM_VERSION=0.12.26
44ARG PYTHON_MAJOR_VERSION=3.7
5+ ARG DEBIAN_VERSION=buster-20200514-slim
56
67# Download Terraform binary
7- FROM debian:buster-20191118-slim as terraform-cli
8+ FROM debian:${DEBIAN_VERSION} as terraform-cli
89ARG TERRAFORM_VERSION
910RUN apt-get update
1011RUN apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u1
@@ -22,21 +23,17 @@ RUN grep terraform_${TERRAFORM_VERSION}_linux_amd64.zip terraform_${TERRAFORM_VE
2223RUN unzip -j terraform_${TERRAFORM_VERSION}_linux_amd64.zip
2324
2425# Install az CLI using PIP
25- FROM debian:buster-20191118-slim as azure-cli
26+ FROM debian:${DEBIAN_VERSION} as azure-cli
2627ARG AZURE_CLI_VERSION
2728ARG PYTHON_MAJOR_VERSION
2829RUN apt-get update
2930RUN apt-get install -y --no-install-recommends python3=${PYTHON_MAJOR_VERSION}.3-1
3031RUN apt-get install -y --no-install-recommends python3-pip=18.1-5
31- RUN pip3 install setuptools==46 .1.3
32+ RUN pip3 install setuptools==47 .1.1
3233RUN pip3 install azure-cli==${AZURE_CLI_VERSION}
33- # Fix an pyOpenSSL package issue... (see https://github.com/erjosito/ansible-azure-lab/issues/5)
34- RUN pip3 uninstall -y pyOpenSSL cryptography
35- RUN pip3 install pyOpenSSL==19.1.0
36- RUN pip3 install cryptography==2.8
3734
3835# Build final image
39- FROM debian:buster-20191118-slim
36+ FROM debian:${DEBIAN_VERSION}
4037LABEL maintainer="bgauduch@github"
4138ARG PYTHON_MAJOR_VERSION
4239RUN apt-get update \
0 commit comments