From 07a7dd7136da31b2ba361ee94671fb63846714ea Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 28 Mar 2025 23:41:05 -0700 Subject: [PATCH] Try to get standalone node_modules in --- .dockerignore | 1 + Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index edeab8ce1..698137cb6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -16,6 +16,7 @@ **/compose* **/Dockerfile* **/node_modules +!.next/standalone/node_modules **/npm-debug.log **/obj **/secrets.dev.yaml diff --git a/Dockerfile b/Dockerfile index 4f820b262..2cb554971 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,6 @@ RUN pnpm install --frozen-lockfile --prefer-offline # Copy source COPY . . -COPY .next .next ARG CI ARG BUILDTIME @@ -47,7 +46,7 @@ WORKDIR /app ENV NODE_ENV=production # Copy only necessary files from the build stage -COPY --from=builder --chown=1000:1000 /app/.next/standalone ./ +COPY --from=builder --chown=1000:1000 /app/.next/standalone/ ./ COPY --from=builder --chown=1000:1000 /app/.next/static ./.next/static COPY --from=builder --chown=1000:1000 /app/public ./public COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/