Fix dangling uploads symlink error in poverty-mapping Dockerfile

This commit is contained in:
ilham_gmail
2026-06-11 17:53:48 +07:00
parent 053f51f421
commit 5a09aeec08
+3
View File
@@ -9,6 +9,9 @@ RUN a2enmod rewrite
# Copy project files into container
COPY . /var/www/html/
# Remove dangling symlink if exists, and create a real uploads directory
RUN rm -f /var/www/html/uploads && mkdir -p /var/www/html/uploads
# Set ownership and permissions for uploads directory
RUN chown -R www-data:www-data /var/www/html && chmod -R 775 /var/www/html/uploads