Skip to content

Fix Docker build: copy patches/ before pnpm install (#37)#669

Open
joltcan wants to merge 1 commit into
itteco:mainfrom
joltcan:main
Open

Fix Docker build: copy patches/ before pnpm install (#37)#669
joltcan wants to merge 1 commit into
itteco:mainfrom
joltcan:main

Conversation

@joltcan
Copy link
Copy Markdown
Contributor

@joltcan joltcan commented Jun 3, 2026

Scope

Category: Docker

About the changes

  • Bug fix (non-breaking change which fixes an issue)

What has changed

Docker build was broken due to missing patches/ directory at install time.

pnpm reads patchedDependencies (readabilitySAX@1.6.1) at install time, but the patches/ directory was only copied later via COPY . /iframely, causing ENOENT and a failed build.

Fixed by adding COPY patches/ /iframely/patches/ before pnpm install --frozen-lockfile, alongside the existing layer-cache copies of package.json and pnpm-lock.yaml.

Related PRs in other repos

None

Checklist

  • I have performed a self-review of my code, including Files Changed view
  • Fix/feat branches in all related repos are named the same
  • All related PRs are submitted
  • Task is DONE and links back to this PR or no task

Review

Single-line Dockerfile change, no migration steps or release notices required. Low risk.

  • PRs have been tested on staging by DEV
  • PRs have been tested on staging by QA
  • PRs have been tested on staging by PRODUCT

pnpm reads patchedDependencies (readabilitySAX@1.6.1) at install time,
but the patches/ directory was not copied into the image before
'pnpm install --frozen-lockfile', causing ENOENT and a failed build.
@iparamonau iparamonau requested a review from nleush June 3, 2026 12:26
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