Skip to content

Commit

Permalink
Merge pull request #6 from camptocamp/lightweigt
Browse files Browse the repository at this point in the history
feat(azure-cli): remove gcc and all problemeatics packages
  • Loading branch information
JGodin-C2C authored Nov 30, 2021
2 parents 26fb454 + a482d4e commit 2a4bb1c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM vault
FROM vault AS builder
WORKDIR /data/
ENV KUBEVERSION=v1.20.13
RUN apk add jq rclone curl gcc musl-dev python3-dev libffi-dev openssl-dev cargo make py3-pip
RUN pip install azure-cli
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
RUN curl -L "https://dl.k8s.io/release/${KUBEVERSION}/bin/linux/amd64/kubectl" -o /usr/bin/kubectl
RUN chmod +x /usr/bin/kubectl
RUN chmod +x /usr/bin/kubectl

0 comments on commit 2a4bb1c

Please sign in to comment.