-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (15 loc) · 746 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ARG ARGOCD_VERSION=2.6.7
ARG AVP_VERSION=1.11.0
ARG KUSTOMIZE_VERSION=5.0.1
FROM curlimages/curl AS downloader
ARG AVP_VERSION
ARG KUSTOMIZE_VERSION
WORKDIR /src
RUN curl -L https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_amd64 -o argocd-vault-plugin
RUN curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | tar -xz
RUN chmod +x /src/*
FROM quay.io/argoproj/argocd:v${ARGOCD_VERSION}
USER root
COPY --from=downloader /src/argocd-vault-plugin /usr/local/bin/argocd-vault-plugin
COPY --from=downloader /src/kustomize /usr/local/bin/kustomize
USER 999