Skip to content

A self-hosted media server and file management system

fix: remove ownership changes for immutable directories and files in docker image

aminnausinb70452f22186
diff --git a/Dockerfile b/Dockerfile
index 3e2c1f4a..3fc1e495 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -103,13 +103,13 @@ RUN mkdir -p /var/www/html/shared \
/var/www/html/storage/app/chrome/.config
# Copy default images
-COPY --chown=www-data:www-data storage/app/public/avatars/default.jpg /var/www/html/storage/app/public/avatars/default.jpg
-COPY --chown=www-data:www-data storage/app/public/thumbnails/default.webp /var/www/html/storage/app/public/thumbnails/default.webp
+COPY storage/app/public/avatars/default.jpg /var/www/html/storage/app/public/avatars/default.jpg
+COPY storage/app/public/thumbnails/default.webp /var/www/html/storage/app/public/thumbnails/default.webp
# Copy dependencies
COPY --from=composer --chown=www-data:www-data /var/www/html/vendor ./vendor
COPY --from=builder --chown=www-data:www-data /var/www/html/public/build ./public/build
-COPY --from=puppeteer --chown=www-data:www-data /app/node_modules ./node_modules
+COPY --from=puppeteer /app/node_modules ./node_modules
COPY --chown=www-data:www-data . .
# Copy .env and set up Laravel