16 lines
576 B
Docker
16 lines
576 B
Docker
FROM alpine:3
|
|
|
|
RUN apk add --no-cache kubectl kustomize age webhook git
|
|
|
|
# Install sops
|
|
ADD https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 /tmp/sops
|
|
RUN mv /tmp/sops /usr/local/bin/sops
|
|
RUN chmod +x /usr/local/bin/sops
|
|
|
|
# Install ksops
|
|
ADD https://github.com/viaduct-ai/kustomize-sops/releases/download/v4.3.1/ksops_latest_Linux_x86_64.tar.gz /tmp/ksops.tar.gz
|
|
RUN tar -xzf /tmp/ksops.tar.gz -C /tmp
|
|
RUN mv /tmp/ksops /usr/local/bin/ksops
|
|
RUN chmod +x /usr/local/bin/ksops
|
|
|
|
ENTRYPOINT ["/usr/bin/webhook", "--hooks", "/etc/webhook/hook.json"] |