From a34de0aa93b86e77b1e48e3036126ec7e815d0e9 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 15 Oct 2023 04:23:19 +0100 Subject: [PATCH] huehoiqw --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c99076..ed69b11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,10 +28,14 @@ RUN adduser --system --uid 1001 nextjs RUN mkdir .next RUN chown nextjs:nodejs .next -COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules -COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next -COPY --from=builder --chown=nextjs:nodejs /app/public ./public -COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json +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 --chown=nextjs:nodejs /app/next.config.js ./ +COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ +COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static RUN npm i -g @beam-australia/react-env