From 94612ca243e26dbc030dc674a3093148b35e85f3 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Wed, 11 Sep 2024 07:27:08 -0500 Subject: [PATCH] Added no node snapshot Signed-off-by: Andre Wanlin --- docs/deployment/docker.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/deployment/docker.md b/docs/deployment/docker.md index 6531aa88d3..1017684595 100644 --- a/docs/deployment/docker.md +++ b/docs/deployment/docker.md @@ -89,6 +89,9 @@ COPY --chown=node:node .yarnrc.yml ./ # This switches many Node.js dependencies to production mode. ENV NODE_ENV=production +# This disables node snapshot for Node 20 to work with the Scaffolder +ENV NODE_OPTIONS "--no-node-snapshot" + # Copy repo skeleton first, to avoid unnecessary docker cache invalidation. # The skeleton contains the package.json of each package in the monorepo, # and along with yarn.lock and the root package.json, that's enough to run yarn install. @@ -283,6 +286,9 @@ COPY --chown=node:node examples ./examples # This switches many Node.js dependencies to production mode. ENV NODE_ENV=production +# This disables node snapshot for Node 20 to work with the Scaffolder +ENV NODE_OPTIONS "--no-node-snapshot" + CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"] ```