diff --git a/.dockerignore b/.dockerignore index b0cc816b..93f7d73f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,6 +13,7 @@ package-lock.json .DS_Store .env *.log +scripts/ npm-debug.log* yarn-debug.log* pnpm-debug.log* diff --git a/Dockerfile b/Dockerfile index 8fa82a6a..64aa8358 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,10 @@ FROM node:24-alpine AS build-stage # corepack ships with the node image and provisions pnpm at the version pinned # by the `packageManager` field in package.json — no global npm install needed. RUN corepack enable +# node-gyp toolchain for native deps without musl prebuilds (node-pty, pulled +# in by the code-inspector dev plugin) — build stage only, the production +# stage below stays toolchain-free. +RUN apk add --no-cache python3 make g++ WORKDIR /app # Copy the manifests first so this layer (and the install below) stays cached # unless dependencies actually change. pnpm-workspace.yaml carries the