use h2 base image

This commit is contained in:
holzi1005 2025-01-29 21:45:23 +01:00
parent 6234fa8364
commit c1e51cce40

View file

@ -1,8 +1,5 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
FROM git.h2-invent.com/public-system-design/alpine-php8-cron-webserver:3.20.7
ARG VERSION=development
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
@ -30,18 +27,6 @@ RUN apk --no-cache add \
RUN echo "Europe/Berlin" > /etc/timezone
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "*/10 * * * * php /var/www/html/bin/console app:statistik:generate" >> /var/crontab \
&& echo "" >> /var/crontab \