fix: pkg: do not create bogus `{cache,views,sessions}` directory in prod export
This commit is contained in:
@@ -85,7 +85,7 @@ RUN apk add --no-cache xz
|
||||
COPY --from=phpdeps /app /app
|
||||
|
||||
# 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)
|
||||
RUN mkdir -p /out \
|
||||
&& tar -C /app -cf /out/app.tar \
|
||||
|
||||
Reference in New Issue
Block a user