]> _ Git - fluidbook-hosting-loadbalancer.git/commitdiff
wip #6269
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Sep 2023 10:49:47 +0000 (12:49 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Sep 2023 10:49:47 +0000 (12:49 +0200)
Dockerfile
bin/startup [new file with mode: 0644]

index 7084ff1692099fd6053b09952daf361b8b6e0527..f9195fdda119438648c61bfbee27e757d1ed8141 100644 (file)
@@ -6,4 +6,6 @@ ENV TERM=linux
 ENV DEBIAN_FRONTEND=noninteractive
 
 RUN apt update && apt -y --no-install-recommends install rsync ssh cron
-RUN a2enmod headers
\ No newline at end of file
+RUN a2enmod headers
+
+CMD exec /usr/local/bin/startup.sh
\ No newline at end of file
diff --git a/bin/startup b/bin/startup
new file mode 100644 (file)
index 0000000..d89382b
--- /dev/null
@@ -0,0 +1,3 @@
+#/bin/sh
+chmod 0644 /etc/crontab && crontab -u root /etc/crontab && /usr/sbin/cron
+/usr/bin/apache2-foreground
\ No newline at end of file