From 686fff945e0b4697aa74da404ce90534bb7b121d Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 26 Dec 2024 20:12:34 +0100 Subject: Add async email and topic subscribing --- Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index ccbf6e7..59b961a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM php:8.3-apache-bookworm AS base RUN a2enmod rewrite RUN apt update && apt install -y \ + cron \ curl \ git \ libzip-dev \ @@ -21,7 +22,20 @@ RUN docker-php-ext-configure gd \ RUN docker-php-ext-install gd zip pgsql intl RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -FROM base AS dev +FROM base AS with-cronjob +COPY --chmod=644 ./crontab /tmp/crontab.tmp +RUN crontab /tmp/crontab.tmp && \ + rm -f /tmp/crontab.tmp +RUN touch /var/log/cron.log && \ + touch /var/log/jobs.log && \ + touch /var/log/job-errors.log + +FROM with-cronjob AS with-scripts +COPY --chmod=700 ./entrypoint.sh /entrypoint.sh +COPY --chmod=700 ./with-env /with-env + +FROM with-scripts AS dev +CMD ["/entrypoint.sh"] COPY ./000-default.conf /etc/apache2/sites-available/000-default.conf WORKDIR /var/www/html -- cgit v1.2.3