From 67411b3972a3f0ca150f6da77574d4895cb28e7c Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Sat, 4 Oct 2025 11:31:00 +0000 Subject: [PATCH] Update build --- Dockerfile | 1 + next.config.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 17a8145..0142d39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,7 @@ RUN chown nextjs:nodejs .next # 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/standalone ./ +COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static USER nextjs diff --git a/next.config.ts b/next.config.ts index c8bdeed..6ee0cae 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,6 +2,9 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ + output: 'standalone', + // optional hardening + reactStrictMode: true, images: { remotePatterns: [ {