From 74f1c04022328280b996dde0b7089e13d96acf70 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sat, 22 Apr 2023 13:15:14 +0300 Subject: edit lesson: media handling --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6e76571..adb4c79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,12 +75,13 @@ RUN sed -i 's/^# *\(el_GR\)/\1/' /etc/locale.gen RUN locale-gen -# Manage permitions in specific directories +# Manage permitions in specific (writable) directories # ------------------------------------------------------------------------------ # (make local storage directories writable) RUN chown -R www-data:www-data /var/www RUN chmod -R 757 /var/www/storage - +RUN chown -R www-data:www-data /var/www/public/files +RUN chmod -R 757 /var/www/public/files # change apache's default-root to /var/www/public RUN sed -ri -e 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/*.conf -- cgit v1.2.3