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