cert-exporter/Containerfile

20 lines
413 B
Docker

FROM registry.fedoraproject.org/fedora-minimal:38
RUN microdnf install -y \
git-core \
openssh-clients \
python3 \
python3-GitPython \
python3-kubernetes \
python3-ruamel-yaml \
&& microdnf clean all \
&& groupadd -g 1000 cert-exporter \
&& useradd -m -u 1000 -g 1000 cert-exporter \
&& :
USER 1000:1000
COPY cert-exporter.py /usr/local/bin/cert-exporter
ENTRYPOINT ["/usr/local/bin/cert-exporter"]