-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 859 Bytes
/
Dockerfile
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
FROM ubuntu:xenial
RUN apt-get update -y && \
apt-get install -y eatmydata # 1
COPY buildfiles/*.deb /tmp/
ARG DEBIAN_FRONTEND
RUN eatmydata apt-get install -o APT::Install-Recommends="0" -y \
apt-transport-https \
gdebi-core \
sudo \
libapache2-mod-php7.0 && \
gdebi -n /tmp/nagrestconf_1.174.7_all.deb && \
dpkg -i /tmp/nagrestconf-backup-plugin_1.174.7_all.deb \
/tmp/nagrestconf-hosts-bulktools-plugin_1.174.7_all.deb \
/tmp/nagrestconf-services-bulktools-plugin_1.174.7_all.deb \
/tmp/nagrestconf-services-plugin_1.174.7_all.deb # 2
RUN a2dismod mpm_event && \
a2enmod mpm_prefork
COPY init.sh /sbin/init.sh
ENTRYPOINT ["/sbin/init.sh"]
RUN sed -i '/^start)/,/^stop/ {s/$HTTPD/exec $HTTPD/}' /usr/sbin/apache2ctl
RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf