Fix: entrypoint chown /data pour www-data
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
mkdir -p /data/uploads
|
||||||
|
chown -R www-data:www-data /data
|
||||||
|
exec apache2-foreground
|
||||||
Reference in New Issue
Block a user