From b2f00ead076885fd8c9a1782d798aff71b59be31 Mon Sep 17 00:00:00 2001 From: ivamp Date: Mon, 3 Jun 2024 18:15:43 +0800 Subject: [PATCH] test --- Dockerfile | 4 +++- entrypoint.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 2c3c324..49335d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,6 @@ RUN docker-php-ext-install gd && docker-php-ext-enable gd RUN rm /usr/local/bin/install-php-extensions && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/{apt,dpkg,cache,log}/ && rm -rf /tmp/* -WORKDIR /var/www/html \ No newline at end of file +WORKDIR /var/www/html + +ENTRYPOINT [ "entrypoint.sh" ] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..f5780eb --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh +service cron start +exec apache2-foreground \ No newline at end of file