-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG DEBIAN_VERSION
FROM debian:${DEBIAN_VERSION}
ARG MONIT_DOWNLOAD_URL
ARG DEBIAN_FRONTEND=noninteractive
RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split \
&& ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb \
&& ln -s /bin/rm /usr/sbin/rm \
&& ln -s /bin/tar /usr/sbin/tar
WORKDIR /opt
RUN sed -i 's/Components: main/Components: main contrib non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources \
&& apt-get update && apt-get dist-upgrade -y \
&& apt-get -y install rsync xmlstarlet curl nmap wakeonlan snmp snmp-mibs-downloader bc tzdata tcptraceroute jq xq yq iperf3 ripgrep netcat-openbsd arping dnsutils \
&& apt-get clean \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/* /usr/share/snmp/mibs/ietf/SNMPv2-PDU
COPY root/download_monit.sh /download_monit.sh
RUN /download_monit.sh $MONIT_DOWNLOAD_URL
EXPOSE 2812
VOLUME /config
COPY root/docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]