fix: create var/ before chmod in Dockerfile

This commit is contained in:
Ploush 2026-04-09 17:14:40 +02:00
parent c972623b6f
commit 8e0c532d69

View file

@ -38,7 +38,8 @@ RUN composer install --no-dev --optimize-autoloader --no-scripts --no-interactio
COPY app/ . COPY app/ .
# ── Droits ────────────────────────────────────────────────── # ── Droits ──────────────────────────────────────────────────
RUN chown -R www-data:www-data /var/www/html \ RUN mkdir -p /var/www/html/var \
&& chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/var && chmod -R 755 /var/www/html/var
# ── Config Apache ──────────────────────────────────────────── # ── Config Apache ────────────────────────────────────────────