From 6f23757e7d3b5d3d2d535e063f06ef60df07e961 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Wed, 11 Sep 2024 07:27:55 -0500 Subject: [PATCH] Also for create-app Signed-off-by: Andre Wanlin --- .../templates/default-app/packages/backend/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/create-app/templates/default-app/packages/backend/Dockerfile b/packages/create-app/templates/default-app/packages/backend/Dockerfile index f18fa46af2..09024eb44f 100644 --- a/packages/create-app/templates/default-app/packages/backend/Dockerfile +++ b/packages/create-app/templates/default-app/packages/backend/Dockerfile @@ -44,6 +44,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.