Update Dockerfile for node:22-alpine and dependencies#6224
Update Dockerfile for node:22-alpine and dependencies#6224
Conversation
Updated base image version to node:22-alpine and modified build dependencies handling.
|
| make gcc g++ python3 libgcc libstdc++ git && \ | ||
| # Ensure corepack is enabled (available in official Node images) and | ||
| # install only build-time dependencies using a named virtual package. | ||
| RUN corepack enable && \ |
There was a problem hiding this comment.
Just remember that next time you upgrade to a new major version of Node, this line will crash because corepack isn't shipped by default anymore
There was a problem hiding this comment.
Pull request overview
Updates the container build for the Companion service by switching the Node base image tag and adjusting Alpine build dependencies used during the Yarn workspace install/build steps.
Changes:
- Switched both build and runtime stages from
node:22.18.0-alpinetonode:22-alpine. - Enabled Corepack explicitly before running Yarn.
- Reworked build-time dependency installation/removal to use
apk add --no-cache --virtual .build-deps ...withbuild-base.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Updated Node.js base image version in Dockerfile.
Updated base image version to node:22-alpine and modified build dependencies handling. Somebody pointed out that dependencies were out of date.
Note: done by LLM, i don't know if it's correct