mirror of
https://github.com/luzifer-docker/argo-crypt.git
synced 2024-12-20 14:21:17 +00:00
27 lines
567 B
Docker
27 lines
567 B
Docker
FROM alpine AS prefetch
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache \
|
|
curl \
|
|
unzip \
|
|
&& curl -sSfLo vault.zip "https://releases.hashicorp.com/vault/1.17.5/vault_1.17.5_linux_amd64.zip" \
|
|
&& unzip vault.zip
|
|
|
|
|
|
FROM quay.io/argoproj/argocd:v2.12.6
|
|
|
|
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
|