From 158bc4fd571f9d1f745c1d30fecc967cc40555be Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 15 Oct 2025 13:19:10 +0200 Subject: [PATCH] fix: provide correct temporary directory outside of ``vendor/`` --- Dockerfile | 3 +-- config/media-library.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3cd0df9..efd32efc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,7 @@ COPY . /app WORKDIR /app RUN mkdir -p /app/bootstrap/cache \ + /app/storage/media-library/temp \ /app/storage/framework/cache \ /app/storage/framework/views \ /app/storage/framework/sessions \ @@ -84,8 +85,6 @@ RUN apk add --no-cache xz # bring PHP app with vendor COPY --from=phpdeps /app /app -# ensure required runtime dirs exist (empty is fine) -RUN mkdir -p storage/framework/cache storage/framework/views storage/framework/sessions bootstrap/cache # create artifact (use tar + xz so we don't depend on GNU tar -J) RUN mkdir -p /out \ && tar -C /app -cf /out/app.tar \ diff --git a/config/media-library.php b/config/media-library.php index 80fbd870..893ec0fd 100644 --- a/config/media-library.php +++ b/config/media-library.php @@ -126,7 +126,7 @@ return [ * The path where to store temporary files while performing image conversions. * If set to null, storage_path('media-library/temp') will be used. */ - 'temporary_directory_path' => null, + 'temporary_directory_path' => env('MEDIA_LIBRARY_TEMP_PATH', storage_path('media-library/temp')), /* * The engine that should perform the image conversions.