From 86c69e5993236b80d1ab92af8f0c73e4ac54c46c Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Fri, 21 Jul 2023 10:30:14 +0100 Subject: [PATCH] Removed the --link flag --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bee87c3d..04b6688e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ RUN yarn --frozen-lockfile # Rebuild the source code only when needed FROM base AS builder WORKDIR /app -COPY --from=deps --link /app/node_modules ./node_modules -COPY --link . . +COPY --from=deps /app/node_modules ./node_modules +COPY . . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry @@ -40,12 +40,12 @@ RUN \ addgroup --system --gid 1001 nodejs; \ adduser --system --uid 1001 nextjs -COPY --from=builder --link /app/public ./public +COPY --from=builder /app/public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=builder --link --chown=1001:1001 /app/.next/standalone ./ -COPY --from=builder --link --chown=1001:1001 /app/.next/static ./.next/static +COPY --from=builder --chown=1001:1001 /app/.next/standalone ./ +COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static USER nextjs