Skip to content

Commit e89c41f

Browse files
author
Alexandru Salajan
committed
Fix docker build
1 parent d01de3e commit e89c41f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3-alpine AS compile-image
1+
FROM python:3-alpine3.13 AS compile-image
22
ARG TERRAFORM_VERSION="0.12.6"
33
ARG AZURE_CLI_VERSION="2.0.67"
44

@@ -14,6 +14,7 @@ RUN ln -s /usr/local/bin/python /usr/bin/python
1414
RUN pip --no-cache-dir install virtualenv \
1515
&& virtualenv /azure-cli \
1616
&& source /azure-cli/bin/activate \
17+
&& python -m pip install --upgrade pip \
1718
&& env CRYPTOGRAPHY_DONT_BUILD_RUST=1 pip install azure-cli==${AZURE_CLI_VERSION} \
1819
&& deactivate
1920
RUN bash build_scripts/freeze_requirements.sh
@@ -36,6 +37,7 @@ COPY --from=compile-image /sources/dist /dist
3637

3738
RUN adduser ops -Du 2342 -h /home/ops \
3839
&& ln -s /usr/local/bin/python /usr/bin/python \
40+
&& /usr/bin/python -m pip install --upgrade pip \
3941
&& apk add --no-cache bash zsh ca-certificates curl jq openssh-client git \
4042
&& apk add --virtual=build gcc libffi-dev musl-dev openssl-dev make \
4143
# Install ops python package

0 commit comments

Comments
 (0)