Skip to content

Update Dockerfile to Node 22, remove deprecated @shopify/theme#111

Open
jacobkossman wants to merge 1 commit into
Shopify:mainfrom
KOSSMN:main
Open

Update Dockerfile to Node 22, remove deprecated @shopify/theme#111
jacobkossman wants to merge 1 commit into
Shopify:mainfrom
KOSSMN:main

Conversation

@jacobkossman

Copy link
Copy Markdown

Summary

The Dockerfile currently uses node:20-bookworm, which limits @shopify/cli to the 3.x branch (4.x requires Node >=22.12.0). This causes shopify theme push to fail when block or section schemas use color_palette dynamic defaults (e.g. {{ settings.colors.foreground }}).

This was fixed in @shopify/cli 4.0.0 — specifically 1e8963e, which uploads config/settings_schema.json before any other theme file so that blocks/sections referencing color_palette settings resolve correctly on first push. However, 4.0.0 also dropped Node 20 support (0c35553), so the fix is unreachable from a Node 20 base image.

Changes

  • FROM node:20-bookwormFROM node:22-bookworm
  • Removed @shopify/theme from npm install -g (deprecated since CLI 3.59.0, now bundled in @shopify/cli)

@jacobkossman

Copy link
Copy Markdown
Author

I have signed the CLA!

@jacobkossman jacobkossman marked this pull request as ready for review June 21, 2026 09:07
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.

1 participant