From 707e1491cbdf0aae992f1d04b83755fdf444fb15 Mon Sep 17 00:00:00 2001 From: AEnterprise Date: Sun, 31 Aug 2025 12:35:42 +0200 Subject: [PATCH] merge some layers when copying the files into the container --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1a46ca..e3de6cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -82,9 +82,9 @@ COPY ./php.ini "$PHP_INI_DIR/php.ini" RUN a2enmod rewrite # Copy the downloaded release -RUN cp -R /tmp/koel/. /var/www/html -RUN [ ! -f /var/www/html/public/manifest.json ] && cp /var/www/html/public/manifest.json.example /var/www/html/public/manifest.json || true -RUN chown -R www-data:www-data /var/www/html +RUN cp -R /tmp/koel/. /var/www/html \ + && mv /var/www/html/public/manifest.json.example /var/www/html/public/manifest.json \ + && chown -R www-data:www-data /var/www/html # Create /tmp/koel if it doesn't exist, and set ownership to www-data RUN mkdir -p /tmp/koel \