Browse Source

added run.sh

tags/v1.0.0^0
Robin Thoni 6 years ago
parent
commit
1f3c414270
2 changed files with 7 additions and 1 deletions
  1. 3
    1
      apache/Dockerfile
  2. 4
    0
      apache/run.sh

+ 3
- 1
apache/Dockerfile View File

@@ -24,6 +24,8 @@ COPY ./config/apache2.conf /etc/apache2/apache2.conf
24 24
 
25 25
 COPY ./wwwroot/ /var/www/html/
26 26
 
27
+COPY run.sh /usr/local/bin/run.sh
28
+
27 29
 EXPOSE 80
28 30
 
29
-CMD "/usr/sbin/apache2ctl" "-D" "FOREGROUND"
31
+CMD "/usr/local/bin/run.sh"

+ 4
- 0
apache/run.sh View File

@@ -0,0 +1,4 @@
1
+#!/bin/bash
2
+
3
+rm -f /run/apache2/apache2.pid
4
+exec /usr/sbin/apache2ctl -D FOREGROUND

Loading…
Cancel
Save