fix: pkg: do not create bogus `{cache,views,sessions}` directory in prod export

This commit is contained in:
Valentin Lab
2025-10-15 12:46:01 +02:00
parent 9ce62e82e5
commit 67e4346c68

View File

@@ -85,7 +85,7 @@ RUN apk add --no-cache xz
COPY --from=phpdeps /app /app COPY --from=phpdeps /app /app
# ensure required runtime dirs exist (empty is fine) # ensure required runtime dirs exist (empty is fine)
RUN mkdir -p storage/framework/{cache,views,sessions} bootstrap/cache 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 \