René's URL Explorer Experiment


Title: fix(docker): ship libvips so sharp can actually load at runtime by waleedlatif1 · Pull Request #6499 · simstudioai/sim · GitHub

Open Graph Title: fix(docker): ship libvips so sharp can actually load at runtime by waleedlatif1 · Pull Request #6499 · simstudioai/sim

X Title: fix(docker): ship libvips so sharp can actually load at runtime by waleedlatif1 · Pull Request #6499 · simstudioai/sim

Description: Summary sharp has never been able to load in the deployed image. The runtime error is ERR_DLOPEN_FAILED: libvips-cpp.so.8.18.3: cannot open shared object file — not a missing module. @img/sharp- (the .node binding) gets traced in; @img/sharp-libvips- (which ships libvips) does not, because the binding loads it through the dynamic linker rather than a JS require. Copy sharp and @img into the runner stage, mirroring the lib0/yjs/y-protocols lines directly above that solve the identical hoisting problem. Drop the ./node_modules/sharp/**/* and ./node_modules/@img/**/* entries from outputFileTracingIncludes. They were added in #2458 (2025-12-18) to do exactly this job and never worked: the globs resolve against apps/sim while both packages hoist to the monorepo root. Verified empty in the real deps image. This is the root cause behind #6496. That PR contained the blast radius (a top-level import sharp in the content registry was 500ing /blog, /library, /sitemap.xml and every route beneath them); this one makes sharp work. It also restores copilot VFS image preparation, which has been silently degrading on the same failure — file-reader.ts guards its import and logs Failed to load sharp for image preparation. Trims the over-explained comments #6496 left behind, now that the Dockerfile owns the packaging rationale. Type of Change Bug fix Testing Built the deps stage (docker build --target deps) and confirmed the COPY sources exist and carry the missing file: @img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.8.18.3, plus sharp, @img/colour, and the platform binding. Confirmed /app/apps/sim/node_modules is empty in that image, which is what makes the deleted globs provably dead rather than merely suspicious. No new JS deps needed: the deployed image already resolves sharp's detect-libc/semver — proven by the error reaching ERR_DLOPEN_FAILED at all, which only happens after sharp's JS loads. A missing JS dep would be MODULE_NOT_FOUND. bun run type-check, bun run lint, bunx vitest run lib/content (44 passed). Notes Two things deliberately not done here: The COPY lines must stay below the .next/standalone copy. Standalone ships its own partial node_modules; hoisting these up would let it clobber them and reintroduce the bug. Copying all of @img includes the musl variants (~18 MB) that a Debian/glibc image can't load. A wildcard COPY @img/sharp-linux-* would trim it, but Docker copies matched directories' contents into the destination, flattening them and breaking resolution — not worth 0.5% of a 3.6 GB image. Follow-up worth its own PR: the ws and jsdom entries in the same outputFileTracingIncludes block are dead for the identical reason, and carry a comment confidently explaining a mechanism that doesn't work. Left alone here to keep an outage fix narrow. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary sharp has never been able to load in the deployed image. The runtime error is ERR_DLOPEN_FAILED: libvips-cpp.so.8.18.3: cannot open shared object file — not a missing module. @img/sharp-&l...

X Description: Summary sharp has never been able to load in the deployed image. The runtime error is ERR_DLOPEN_FAILED: libvips-cpp.so.8.18.3: cannot open shared object file — not a missing module. @img/sharp-&a...

Opengraph URL: https://github.com/simstudioai/sim/pull/6499

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e393a1fb-6a35-8735-4d59-e4b4e47720b2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCAC0:AA761:5039:6C0E:6AFB42C7
html-safe-noncedbc66d0a452b45a881a485795f48f720d6a78b0e300f77b49ad2758ad8ddfb48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUMwOkFBNzYxOjUwMzk6NkMwRTo2QUZCNDJDNyIsInZpc2l0b3JfaWQiOiI3MDE4NjEyNzg5ODQ5MzA5ODk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9e4c90b1c57d0c58286a42c16ab08c2e400e400aab168a1d5c662a5399a060be
hovercard-subject-tagpull_request:4247417235
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6499/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary sharp has never been able to load in the deployed image. The runtime error is ERR_DLOPEN_FAILED: libvips-cpp.so.8.18.3: cannot open shared object file — not a missing module. @img/sharp-&l...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6499/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6499%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6499%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6499/files
Reloadhttps://github.com/simstudioai/sim/pull/6499/files
Reloadhttps://github.com/simstudioai/sim/pull/6499/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests200 (200)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
worktree-sharp-libvips-runtimehttps://github.com/simstudioai/sim/tree/worktree-sharp-libvips-runtime
Conversation 6 https://github.com/simstudioai/sim/pull/6499
Commits 2 https://github.com/simstudioai/sim/pull/6499/commits
Checks 29 https://github.com/simstudioai/sim/pull/6499/checks
Files changed https://github.com/simstudioai/sim/pull/6499/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6499/files
fix(docker): ship libvips so sharp can actually load at runtime https://github.com/simstudioai/sim/pull/6499/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6499/files
9797c7d fix(docker): ship libvips so sharp can actually load at runtime waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6499/commits/9797c7d58970baf20478bfc3fe7c27d9835ae6dd
81d4605 style(config): use TSDoc for the tracing-includes note waleedlatif1 Aug 10, 2026 https://github.com/simstudioai/sim/pull/6499/commits/81d4605f1daf34564d7c6b38611e5d340e53f737
Clear filters https://github.com/simstudioai/sim/pull/6499/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6499/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6499/files
registry-factory.test.ts https://github.com/simstudioai/sim/pull/6499/files#diff-544be998da67d298f1c3ba7cc7fe4b666914a1dd23ca5ac15d6677ab4301d850
registry-factory.ts https://github.com/simstudioai/sim/pull/6499/files#diff-ec68bcac9834a0f66fb1cca87a910066c709827e88618a5eab899a3653417215
next.config.ts https://github.com/simstudioai/sim/pull/6499/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
app.Dockerfile https://github.com/simstudioai/sim/pull/6499/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
apps/sim/lib/content/registry-factory.test.tshttps://github.com/simstudioai/sim/pull/6499/files#diff-544be998da67d298f1c3ba7cc7fe4b666914a1dd23ca5ac15d6677ab4301d850
View file https://github.com/simstudioai/sim/blob/81d4605f1daf34564d7c6b38611e5d340e53f737/apps/sim/lib/content/registry-factory.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6499/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6499/files#diff-544be998da67d298f1c3ba7cc7fe4b666914a1dd23ca5ac15d6677ab4301d850
https://github.com/simstudioai/sim/pull/6499/files#diff-544be998da67d298f1c3ba7cc7fe4b666914a1dd23ca5ac15d6677ab4301d850
apps/sim/lib/content/registry-factory.tshttps://github.com/simstudioai/sim/pull/6499/files#diff-ec68bcac9834a0f66fb1cca87a910066c709827e88618a5eab899a3653417215
View file https://github.com/simstudioai/sim/blob/81d4605f1daf34564d7c6b38611e5d340e53f737/apps/sim/lib/content/registry-factory.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6499/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6499/files#diff-ec68bcac9834a0f66fb1cca87a910066c709827e88618a5eab899a3653417215
https://github.com/simstudioai/sim/pull/6499/files#diff-ec68bcac9834a0f66fb1cca87a910066c709827e88618a5eab899a3653417215
apps/sim/next.config.tshttps://github.com/simstudioai/sim/pull/6499/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
View file https://github.com/simstudioai/sim/blob/81d4605f1daf34564d7c6b38611e5d340e53f737/apps/sim/next.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6499/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6499/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
https://github.com/simstudioai/sim/pull/6499/files#diff-a2e0d564b8bf660a492f7abe431643db390b0f5696809465afc46475f552f15f
docker/app.Dockerfilehttps://github.com/simstudioai/sim/pull/6499/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
View file https://github.com/simstudioai/sim/blob/81d4605f1daf34564d7c6b38611e5d340e53f737/docker/app.Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6499/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6499/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
https://github.com/simstudioai/sim/pull/6499/files#diff-c77b184581d79618e626c89460b0899fbdd892d86049e0aa634c8b1c3b4cab8d
Please reload this pagehttps://github.com/simstudioai/sim/pull/6499/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.