Clean up container image build script
parent
8a5b45c3f8
commit
0614222ad3
|
@ -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
|
Loading…
Reference in New Issue