From 96995d02c86de2b0959a25579d98f0ffb0010cd4 Mon Sep 17 00:00:00 2001 From: AEnterprise Date: Sun, 31 Aug 2025 12:01:34 +0200 Subject: [PATCH] apply larvel runtime optimalizations --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index c1a46ca..0ead595 100644 --- a/Dockerfile +++ b/Dockerfile @@ -97,6 +97,11 @@ RUN mkdir -p /tmp/koel \ # Otherwise, they are owned by root and the user cannot write to them. VOLUME ["/music", "/var/www/html/storage/search-indexes"] +RUN cd /var/www/html \ + && php artisan route:cache \ + && php artisan event:cache \ + && php artisan view:cache + ENV FFMPEG_PATH=/usr/bin/ffmpeg \ MEDIA_PATH=/music \ STREAMING_METHOD=x-sendfile \