From 109a65f5cc30bebb0a5155c3ad5c2b9ede7e723a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 22 Sep 2023 12:49:47 +0200 Subject: [PATCH] wip #6269 --- Dockerfile | 4 +++- bin/startup | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 bin/startup diff --git a/Dockerfile b/Dockerfile index 7084ff1..f9195fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 index 0000000..d89382b --- /dev/null +++ b/bin/startup @@ -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 -- 2.39.5