|
|
@@ -95,6 +95,15 @@ RUN pnpm deploy out --prod --legacy --filter @growi/app
|
|
|
RUN rm -rf apps/app/node_modules && mv out/node_modules apps/app/node_modules
|
|
|
RUN rm -rf apps/app/.next/cache
|
|
|
|
|
|
+# Resolve .next/node_modules symlinks to real files.
|
|
|
+# Turbopack generates symlinks pointing to the pnpm virtual store (node_modules/.pnpm/),
|
|
|
+# which will not exist in the release image.
|
|
|
+RUN if [ -d apps/app/.next/node_modules ]; then \
|
|
|
+ cp -rL apps/app/.next/node_modules apps/app/.next/node_modules_resolved && \
|
|
|
+ rm -rf apps/app/.next/node_modules && \
|
|
|
+ mv apps/app/.next/node_modules_resolved apps/app/.next/node_modules; \
|
|
|
+ fi
|
|
|
+
|
|
|
# Stage artifacts into a clean directory for COPY --from
|
|
|
RUN mkdir -p /tmp/release/apps/app && \
|
|
|
cp package.json /tmp/release/ && \
|