Skip to content

Update Dockerfile for node:22-alpine and dependencies#6224

Open
mifi wants to merge 2 commits intomainfrom
dockerfile-upgrade
Open

Update Dockerfile for node:22-alpine and dependencies#6224
mifi wants to merge 2 commits intomainfrom
dockerfile-upgrade

Conversation

@mifi
Copy link
Contributor

@mifi mifi commented Mar 13, 2026

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

Updated base image version to node:22-alpine and modified build dependencies handling.
@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

⚠️ No Changeset found

Latest commit: 635106e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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 && \
Copy link
Member

@Murderlon Murderlon Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-alpine to node:22-alpine.
  • Enabled Corepack explicitly before running Yarn.
  • Reworked build-time dependency installation/removal to use apk add --no-cache --virtual .build-deps ... with build-base.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Updated Node.js base image version in Dockerfile.
@mifi mifi requested a review from qxprakash March 13, 2026 14:54
@mifi mifi marked this pull request as ready for review March 13, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants