fix: probleme de droit
This commit is contained in:
parent
d8e4effdad
commit
8f9e0aa7ed
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
8
docker/apache/entrypoint.sh
Normal file
8
docker/apache/entrypoint.sh
Normal 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 "$@"
|
||||||
Loading…
Reference in a new issue