From 0614222ad3c1efee8826348015d425329055f9c2 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 20 Oct 2024 20:33:27 -0500 Subject: [PATCH] Clean up container image build script --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e92b61b..7681f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine -RUN apk update && apk add py3-prometheus-client -COPY prometheus_frigate_exporter.py /var/python_scripts/prometheus_frigate_exporter.py -CMD /usr/bin/python3 /var/python_scripts/prometheus_frigate_exporter.py $FRIGATE_STATS_URL +RUN --mount=type=cache,target=/var/cache apk update && apk add py3-prometheus-client +COPY prometheus_frigate_exporter.py /prometheus_frigate_exporter.py +ENTRYPOINT ["/usr/bin/python3", "/prometheus_frigate_exporter.py"] # docker build -t rhysbailey/prometheus-frigate-exporter . -# docker push rhysbailey/prometheus-frigate-exporter:latest \ No newline at end of file +# docker push rhysbailey/prometheus-frigate-exporter:latest