diff options
author | Jonas Kohl | 2024-12-26 20:12:34 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-26 20:12:34 +0100 |
commit | 686fff945e0b4697aa74da404ce90534bb7b121d (patch) | |
tree | cb5582c8d118cb480f2978fa821950f4a2259401 /Dockerfile | |
parent | 11fed2c8ce3dd38fe686e7b27db738f64373fe3d (diff) |
Add async email and topic subscribingv0.7.2
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 |