Fix: entrypoint chown /data pour www-data

This commit is contained in:
perco
2026-06-27 11:18:57 +02:00
parent b6750caf69
commit 0409b63507
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ RUN chown -R www-data:www-data /var/www/html && \
echo "ServerName localhost" >> /etc/apache2/apache2.conf echo "ServerName localhost" >> /etc/apache2/apache2.conf
COPY docker/apache.conf /etc/apache2/sites-available/000-default.conf COPY docker/apache.conf /etc/apache2/sites-available/000-default.conf
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
VOLUME /data VOLUME /data
EXPOSE 80 EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
mkdir -p /data/uploads
chown -R www-data:www-data /data
exec apache2-foreground