diff --git a/Dockerfile b/Dockerfile index b687f39..1de625b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,10 @@ FROM base AS deps COPY package.json package-lock.json .npmrc ./ # Reproducible install honouring the lockfile (.npmrc provides legacy-peer-deps, # required because react-google-map-picker declares a React 17 peer). -RUN npm ci --no-audit --no-fund +# --include=dev forces devDependencies even when the platform injects +# NODE_ENV=production (Coolify does this on all stages); the build needs +# devDeps such as babel-plugin-react-compiler (React Compiler) and typescript. +RUN npm ci --include=dev --no-audit --no-fund # ---------------------------------------------------------------------------- # 2. Builder — produces the standalone output.