-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from camptocamp/lightweigt
feat(azure-cli): remove gcc and all problemeatics packages
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |