docker-smokeping/Dockerfile

42 lines
1018 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
RUN apt-get install -y apache2 smokeping
#Link config
RUN ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf
#Enable Apache modules
RUN a2enconf apache2
RUN a2enmod cgid
#RUN setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2
#Last line of normal hassle
RUN 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 && mkdir /data
#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