diff options
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 |