2024-09-16 17:51:28 +00:00
|
|
|
FROM alpine AS prefetch
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk add --no-cache \
|
|
|
|
curl \
|
|
|
|
unzip \
|
2024-11-27 09:01:55 +00:00
|
|
|
&& curl -sSfLo vault.zip "https://releases.hashicorp.com/vault/1.18.2/vault_1.18.2_linux_amd64.zip" \
|
2024-09-16 17:51:28 +00:00
|
|
|
&& unzip vault.zip
|
|
|
|
|
|
|
|
|
2024-11-27 09:01:55 +00:00
|
|
|
FROM quay.io/argoproj/argocd:v2.13.1
|
2024-09-16 17:51:28 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
git-crypt \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& mv /usr/bin/git /usr/bin/git.bin
|
|
|
|
|
|
|
|
COPY git-wrapper.sh /usr/bin/git
|
|
|
|
COPY --from=prefetch /tmp/vault /usr/bin/vault
|
|
|
|
|
|
|
|
USER 999
|