FROM registry.access.redhat.com/ubi8/ubi-minimal
ARG TARGETOS
ARG TARGETARCH
COPY bin/external-secrets-${TARGETOS}-${TARGETARCH} /bin/external-secrets

RUN microdnf update

# Run as UID for nobody
USER 65534

ENTRYPOINT ["/bin/external-secrets"]
