mirror of
https://github.com/linuxserver/docker-smokeping.git
synced 2026-04-13 00:04:22 +08:00
38 lines
944 B
Docker
38 lines
944 B
Docker
FROM phusion/baseimage:0.9.16
|
|
MAINTAINER LinuxServer.io <ironicbadger@linuxserver.io>
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV HOME /root
|
|
ENV TERM screen
|
|
|
|
#Applying stuff
|
|
RUN apt-get update && \
|
|
apt-get install -y apache2 smokeping && \
|
|
ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf && \
|
|
a2enconf apache2 && \
|
|
a2enmod cgid && \
|
|
setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2 && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
|
#Adding Custom files
|
|
ADD config.d/ /etc/smokeping/config.d/
|
|
ADD init/ /etc/my_init.d/
|
|
ADD services/ /etc/service/
|
|
ADD Targets /tmp/Targets
|
|
ADD config /etc/smokeping/config
|
|
RUN chmod -v +x /etc/service/*/run
|
|
RUN chmod -v +x /etc/my_init.d/*.sh
|
|
RUN mkdir /var/run/smokeping
|
|
|
|
#Adduser
|
|
RUN useradd -u 911 -U -s /bin/false abc
|
|
RUN usermod -G users abc
|
|
|
|
# Use baseimage-docker's init system
|
|
CMD ["/sbin/my_init"]
|
|
|
|
# Volumes and Ports
|
|
VOLUME /config
|
|
VOLUME /data
|
|
EXPOSE 80
|