Ajout de la configuration de Supercronic pour la configuration des tâches planifiées.

This commit is contained in:
2026-03-12 22:04:20 +01:00
parent f09491f786
commit 519f5ee4cb
7 changed files with 59 additions and 24 deletions
+13 -3
View File
@@ -17,6 +17,7 @@ RUN if echo "$SERVER_PHP_IMAGE" | grep -qi apache; then \
fi
RUN apt-get update && apt-get install -y \
nano \
git \
mariadb-client \
npm \
@@ -35,6 +36,17 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Configuration de cron
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.44/supercronic-linux-amd64 \
SUPERCRONIC_SHA1SUM=6eb0a8e1e6673675dc67668c1a9b6409f79c37bc \
SUPERCRONIC=supercronic-linux-amd64
RUN curl -fsSLO "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
# Configuration pour Composer
@@ -43,6 +55,4 @@ ENV COMPOSER_CACHE_DIR=/var/www/.cache/composer
# Configuration de NPM
RUN mkdir -p /var/www/.npm && chown -R www-data:www-data /var/www/.npm
ENV NPM_CONFIG_CACHE=/var/www/.npm
USER www-data
ENV NPM_CONFIG_CACHE=/var/www/.npm