From 92b5842eea05c0b90fae2b2e4a123fb43f221b81 Mon Sep 17 00:00:00 2001 From: Kamil Matysiewicz Date: Thu, 10 Oct 2024 21:00:13 +0200 Subject: [PATCH] fix: build storefront as a standalone service --- Dockerfile | 1 - next.config.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 748b515..db79d53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,6 @@ COPY --from=builder --chown=node:node /home/node/public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=builder --chown=node:node /home/node/open-telemetry.js ./ COPY --from=builder --chown=node:node /home/node/node_modules ./node_modules COPY --from=builder --chown=node:node /home/node/.next/standalone ./ COPY --from=builder --chown=node:node /home/node/.next/static ./.next/static diff --git a/next.config.js b/next.config.js index 7d47e06..e6d2b6e 100644 --- a/next.config.js +++ b/next.config.js @@ -4,6 +4,7 @@ const nextConfig = { pageExtensions: ['page.tsx', 'page.ts'], swcMinify: true, reactStrictMode: true, + output: 'standalone', }; module.exports = nextConfig;