Clean up container image build script

main
Dustin 2024-10-20 20:33:27 -05:00
parent 8a5b45c3f8
commit 0614222ad3
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM alpine FROM alpine
RUN apk update && apk add py3-prometheus-client RUN --mount=type=cache,target=/var/cache apk update && apk add py3-prometheus-client
COPY prometheus_frigate_exporter.py /var/python_scripts/prometheus_frigate_exporter.py COPY prometheus_frigate_exporter.py /prometheus_frigate_exporter.py
CMD /usr/bin/python3 /var/python_scripts/prometheus_frigate_exporter.py $FRIGATE_STATS_URL ENTRYPOINT ["/usr/bin/python3", "/prometheus_frigate_exporter.py"]
# docker build -t rhysbailey/prometheus-frigate-exporter . # docker build -t rhysbailey/prometheus-frigate-exporter .
# docker push rhysbailey/prometheus-frigate-exporter:latest # docker push rhysbailey/prometheus-frigate-exporter:latest