Fix: entrypoint chown /data pour www-data

This commit is contained in:
perco committed 2026-06-27 11:18:57 +02:00
1 parent b6750caf69
commit 0409b63507
2 files changed
+7

No files matched your search

+3
View File
@@ -10,6 +10,9 @@ RUN chown -R www-data:www-data /var/www/html && \
echo "ServerName localhost" >> /etc/apache2/apache2.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
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