Try to get standalone node_modules in

This commit is contained in:
shamoon
2025-03-28 23:41:05 -07:00
parent 6e768d7409
commit 07a7dd7136
2 changed files with 2 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
**/compose* **/compose*
**/Dockerfile* **/Dockerfile*
**/node_modules **/node_modules
!.next/standalone/node_modules
**/npm-debug.log **/npm-debug.log
**/obj **/obj
**/secrets.dev.yaml **/secrets.dev.yaml

View File

@@ -12,7 +12,6 @@ RUN pnpm install --frozen-lockfile --prefer-offline
# Copy source # Copy source
COPY . . COPY . .
COPY .next .next
ARG CI ARG CI
ARG BUILDTIME ARG BUILDTIME
@@ -47,7 +46,7 @@ WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
# Copy only necessary files from the build stage # 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/.next/static ./.next/static
COPY --from=builder --chown=1000:1000 /app/public ./public COPY --from=builder --chown=1000:1000 /app/public ./public
COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/ COPY --from=builder --chmod=755 /app/docker-entrypoint.sh /usr/local/bin/