We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e1690 commit 1a4265cCopy full SHA for 1a4265c
Dockerfile
@@ -65,10 +65,10 @@ RUN wp core download --allow-root
65
66
67
# Initialize and start Apache service
68
-COPY startupservice.sh /startupservice.sh
+COPY config/startupservice.sh /startupservice.sh
69
RUN chmod +x /startupservice.sh
70
71
# Expose ports for Apache and MariaDB
72
EXPOSE 80
73
74
-ENTRYPOINT ["/startupservice.sh"]
+CMD ["/startupservice.sh"]
config/startupservice.sh
@@ -0,0 +1,6 @@
1
+#!/bin/bash
2
+
3
+/sbin/apache2ctl -v
4
+echo 'Starting webserver: http://127.0.0.1:8080'
5
+# Start Apache in the foreground
6
+/sbin/apache2ctl -D FOREGROUND -k start
startupservice.sh
0 commit comments