mirror of
https://github.com/linuxserver/docker-smokeping.git
synced 2026-04-13 00:04:22 +08:00
41 lines
1.0 KiB
Docker
41 lines
1.0 KiB
Docker
FROM phusion/baseimage:0.9.16
|
|
MAINTAINER LinuxServer.io <ironicbadger@linuxserver.io
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV HOME /root
|
|
ENV TERM screen
|
|
#ENV http_proxy="http://proxy.cambridge.office.worldpay.com:8080/"
|
|
#ENV https_proxy="https://proxy.cambridge.office.worldpay.com:8080/"
|
|
|
|
#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
|
|
|
|
#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/
|
|
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
|