2
2
ARG AZURE_CLI_VERSION=2.7.0
3
3
ARG TERRAFORM_VERSION=0.12.26
4
4
ARG PYTHON_MAJOR_VERSION=3.7
5
+ ARG DEBIAN_VERSION=buster-20200514-slim
5
6
6
7
# Download Terraform binary
7
- FROM debian:buster-20191118-slim as terraform-cli
8
+ FROM debian:${DEBIAN_VERSION} as terraform-cli
8
9
ARG TERRAFORM_VERSION
9
10
RUN apt-get update
10
11
RUN 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
22
23
RUN unzip -j terraform_${TERRAFORM_VERSION}_linux_amd64.zip
23
24
24
25
# Install az CLI using PIP
25
- FROM debian:buster-20191118-slim as azure-cli
26
+ FROM debian:${DEBIAN_VERSION} as azure-cli
26
27
ARG AZURE_CLI_VERSION
27
28
ARG PYTHON_MAJOR_VERSION
28
29
RUN apt-get update
29
30
RUN apt-get install -y --no-install-recommends python3=${PYTHON_MAJOR_VERSION}.3-1
30
31
RUN 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
32
33
RUN 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
37
34
38
35
# Build final image
39
- FROM debian:buster-20191118-slim
36
+ FROM debian:${DEBIAN_VERSION}
40
37
LABEL maintainer="bgauduch@github"
41
38
ARG PYTHON_MAJOR_VERSION
42
39
RUN apt-get update \
0 commit comments