docker-smokeping/Dockerfile
Alex Kretzschmar b3fe54eb37 removed proxies
2015-06-17 12:09:13 +01:00

39 lines
995 B
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
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Link config
RUN ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf
#Enable Apache modules
RUN a2enconf apache2
RUN a2enmod cgid
#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 /data
EXPOSE 80