fix: probleme de droit

This commit is contained in:
Ploush 2026-05-10 09:57:30 +02:00
parent d8e4effdad
commit 8f9e0aa7ed
2 changed files with 15 additions and 0 deletions

View file

@ -52,4 +52,11 @@ COPY docker/apache/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
# ── Config Apache ──────────────────────────────────────────── # ── Config Apache ────────────────────────────────────────────
COPY docker/apache/symfony.conf /etc/apache2/sites-enabled/000-default.conf COPY docker/apache/symfony.conf /etc/apache2/sites-enabled/000-default.conf
# ── Gestion Droits Volume ────────────────────────────────────────────
COPY docker/apache/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["apache2-foreground"]
EXPOSE 80 EXPOSE 80

View file

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# Corrige les droits sur les dossiers susceptibles d'être montés
chown -R www-data:www-data /var/www/html/var /var/www/html/public/uploads 2>/dev/null || true
# Lance la commande originale (apache2-foreground)
exec "$@"