Skip to content

Commit

Permalink
Merge pull request #7 from camptocamp/azure_cli
Browse files Browse the repository at this point in the history
fix(azure-cli): copy venv directly from builder
  • Loading branch information
Philippe authored Nov 30, 2021
2 parents cdfae80 + 3f1cc10 commit 93c7749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ ENV KUBEVERSION=v1.20.13
RUN apk add jq rclone curl gcc musl-dev python3-dev libffi-dev openssl-dev cargo make py3-pip ca-certificates
RUN python3 -m venv /data/azure-cli
RUN source /data/azure-cli/bin/activate && pip install azure-cli
RUN tar -zcvf /azure-cli.tar.gz /data

FROM vault
RUN apk add jq rclone curl python3 ca-certificates
COPY --from=builder /azure-cli.tar.gz /data/azure-cli.tar.gz
RUN tar -zxvf /data/azure-cli.tar.gz && rm -rf /data/azure-cli.tar.gz
COPY --from=builder /data/azure-cli /data/azure-cli
ENV PYTHONPATH=/data/azure-cli
ENV PATH=/data/azure-cli/bin/:$PATH
RUN curl -L "https://dl.k8s.io/release/${KUBEVERSION}/bin/linux/amd64/kubectl" -o /usr/bin/kubectl
RUN chmod +x /usr/bin/kubectl

0 comments on commit 93c7749

Please sign in to comment.