We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba0070c commit 4fc6fc0Copy full SHA for 4fc6fc0
Dockerfile
@@ -54,4 +54,9 @@ RUN rm -f index.html \
54
&& chmod 777 filestore \
55
&& chmod -R 777 include/
56
57
-CMD apachectl -D FOREGROUND
+# Copy custom entrypoint script
58
+COPY entrypoint.sh /entrypoint.sh
59
+RUN chmod +x /entrypoint.sh
60
+
61
+# Start both cron and Apache
62
+CMD ["/entrypoint.sh"]
entrypoint.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
3
+# Start cron service
4
+service cron start
5
6
+# Ensure daily cron jobs are executable
7
+chmod +x /etc/cron.daily/*
8
9
+# Start Apache in the foreground (keeps the container alive)
10
+apachectl -D FOREGROUND
0 commit comments