fix: provide correct temporary directory outside of `vendor/`

This commit is contained in:
Valentin Lab
2025-10-15 13:19:10 +02:00
parent b7e3eefed6
commit 158bc4fd57
2 changed files with 2 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ COPY . /app
WORKDIR /app WORKDIR /app
RUN mkdir -p /app/bootstrap/cache \ RUN mkdir -p /app/bootstrap/cache \
/app/storage/media-library/temp \
/app/storage/framework/cache \ /app/storage/framework/cache \
/app/storage/framework/views \ /app/storage/framework/views \
/app/storage/framework/sessions \ /app/storage/framework/sessions \
@@ -84,8 +85,6 @@ RUN apk add --no-cache xz
# bring PHP app with vendor # bring PHP app with vendor
COPY --from=phpdeps /app /app 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) # create artifact (use tar + xz so we don't depend on GNU tar -J)
RUN mkdir -p /out \ RUN mkdir -p /out \
&& tar -C /app -cf /out/app.tar \ && tar -C /app -cf /out/app.tar \

View File

@@ -126,7 +126,7 @@ return [
* The path where to store temporary files while performing image conversions. * The path where to store temporary files while performing image conversions.
* If set to null, storage_path('media-library/temp') will be used. * 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. * The engine that should perform the image conversions.