Added Dockerfile

This commit is contained in:
IgorKha 2021-07-31 23:13:48 +03:00
parent a6a85b814e
commit c05327928e
2 changed files with 38 additions and 0 deletions

15
snmp/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
LABEL Software="snmp_exporter prometheus for mikrotik"
LABEL Author="IgorKha"
ARG ARCH="amd64"
ARG OS="linux"
COPY snmp_exporter /bin/snmp_exporter
COPY snmp.yml /etc/snmp_exporter/snmp.yml
EXPOSE 9116
ENTRYPOINT [ "/bin/snmp_exporter" ]
CMD [ "--config.file=/etc/snmp_exporter/snmp.yml" ]