René's URL Explorer Experiment


Title: fix(docker): ship the realtime and migrations images with runtime dependencies only by waleedlatif1 · Pull Request #9983 · simstudioai/sim · GitHub

Open Graph Title: fix(docker): ship the realtime and migrations images with runtime dependencies only by waleedlatif1 · Pull Request #9983 · simstudioai/sim

X Title: fix(docker): ship the realtime and migrations images with runtime dependencies only by waleedlatif1 · Pull Request #9983 · simstudioai/sim

Description: Summary Bun's --omit=dev skips the root's devDependencies but still installs every workspace member, each member's devDependencies, and any optional peers the lockfile can satisfy. So the realtime and migrations images shipped drizzle-kit (with its bundled esbuild binaries), vitest, vite and tsx. The esbuild Go binaries accounted for almost every HIGH/CRITICAL scanner finding in both images. New scripts/prune-production-workspace.ts narrows a turbo prune --docker output to the workspace members the target actually reaches through dependencies, optionalDependencies, or a tsconfig.json extends (Bun reads tsconfig at runtime). It drops every other member, such as @sim/testing, and strips devDependencies from the root and the kept members. The root's devDependencies have to go too: otherwise Bun links the locked vitest to satisfy better-auth's optional peer. The realtime image uses that narrowed workspace. The migrations image now uses turbo prune like realtime, which replaces the hand-maintained manifest list. Its final stage (the default) runs db:migrate with runtime dependencies only. A new dev stage keeps drizzle-kit for the dev environment's db:push --force. image-dev builds that stage through a new target input on the image action. Staging, production, GHCR, docker-compose and Helm all build the default stage. The narrowed installs drop --frozen-lockfile, as the migrations image already did. Bun keeps every locked resolution, and full-repository CI owns frozen-lockfile validation. I checked every installed third-party package against the repo lockfile: realtime 118/118 and migrations 6/6 are at a locked version. Type of Change Bug fix Testing Built all three images locally (arm64): Image Before After node_modules realtime 1.21 GB 562 MB 592 MB → 128 MB migrations 1.07 GB 428 MB 490 MB → 21 MB migrations dev stage — 1.07 GB still carries drizzle-kit, as dev needs Neither production image contains drizzle-kit, @esbuild-kit, esbuild, tsx, vite, vitest, typescript or @sim/testing. trivy HIGH/CRITICAL findings: realtime: 4 critical + 56 high → 1 critical + 2 high. The remainder is the existing better-auth advisories, which are a runtime dependency and out of scope here. migrations: 3 critical + 69 high → none. Ran bun run db:migrate from the new migrations image against a scratch pgvector pg17 database: it completes. Booted the new realtime image against scratch Postgres and Redis: /health returns 200 and the socket.io polling handshake succeeds. biome on the new script. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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 Bun's --omit=dev skips the root's devDependencies but still installs every workspace member, each member's devDependencies, and any optional peers the lockfile can satisfy. So ...

X Description: Summary Bun's --omit=dev skips the root's devDependencies but still installs every workspace member, each member's devDependencies, and any optional peers the lockfile can ...

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

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:b4f97620-d2d5-f095-cda7-9f49c5795204
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8950:858A:AEB614:F757CA:6AFB5A9E
html-safe-nonced52f5af076218c5058bdf7dc0d1810f4969f80d3d721a29928cffea600bdc252
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTUwOjg1OEE6QUVCNjE0OkY3NTdDQTo2QUZCNUE5RSIsInZpc2l0b3JfaWQiOiIyODU0MjU4MDYwNjYwNzkxOTY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac12b6611430217637fdcbbcb481c994ce49fdedeef0617ea62f43af445dad5bdc
hovercard-subject-tagpull_request:5290190689
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/9983/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 Bun's --omit=dev skips the root's devDependencies but still installs every workspace member, each member's devDependencies, and any optional peers the lockfile can satisfy. So ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
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
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9983/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9983%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%2F9983%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/9983/files
Reloadhttps://github.com/simstudioai/sim/pull/9983/files
Reloadhttps://github.com/simstudioai/sim/pull/9983/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)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
fix/production-only-imageshttps://github.com/simstudioai/sim/tree/fix/production-only-images
Conversation 2 https://github.com/simstudioai/sim/pull/9983
Commits 1 https://github.com/simstudioai/sim/pull/9983/commits
Checks 74 https://github.com/simstudioai/sim/pull/9983/checks
Files changed https://github.com/simstudioai/sim/pull/9983/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9983/files
fix(docker): ship the realtime and migrations images with runtime dependencies only https://github.com/simstudioai/sim/pull/9983/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/9983/files
e387d59 fix(docker): ship the realtime and migrations images with runtime dep… waleedlatif1 Nov 13, 2026 https://github.com/simstudioai/sim/pull/9983/commits/e387d59895d7c770d2d7043332110f75de5ec7f4
Clear filters https://github.com/simstudioai/sim/pull/9983/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9983/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9983/files
action.yml https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
ci.yml https://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
db.Dockerfile https://github.com/simstudioai/sim/pull/9983/files#diff-cd7c1ee3a373f2cf9735d6a78ed43ddc770cb5e5a5ac3f2894e21d0fbc59f01e
realtime.Dockerfile https://github.com/simstudioai/sim/pull/9983/files#diff-19b5efc336260db99a134f1163fa7d7f4980be471df0e953c868b280dd8f4eef
prune-production-workspace.ts https://github.com/simstudioai/sim/pull/9983/files#diff-d031d587d7c8215160ab120accfb794f42788abf38f95514ef2149c1cc7ee3b6
.github/actions/image/action.ymlhttps://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
View file https://github.com/simstudioai/sim/blob/e387d59895d7c770d2d7043332110f75de5ec7f4/.github/actions/image/action.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9983/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
https://github.com/simstudioai/sim/pull/9983/files#diff-3691eface954371a2432089ee0f7bf370946c37552b4cd8fca7955017d2355d6
.github/workflows/ci.ymlhttps://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/simstudioai/sim/blob/e387d59895d7c770d2d7043332110f75de5ec7f4/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9983/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/9983/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
docker/db.Dockerfilehttps://github.com/simstudioai/sim/pull/9983/files#diff-cd7c1ee3a373f2cf9735d6a78ed43ddc770cb5e5a5ac3f2894e21d0fbc59f01e
View file https://github.com/simstudioai/sim/blob/e387d59895d7c770d2d7043332110f75de5ec7f4/docker/db.Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9983/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9983/files#diff-cd7c1ee3a373f2cf9735d6a78ed43ddc770cb5e5a5ac3f2894e21d0fbc59f01e
docker/realtime.Dockerfilehttps://github.com/simstudioai/sim/pull/9983/files#diff-19b5efc336260db99a134f1163fa7d7f4980be471df0e953c868b280dd8f4eef
View file https://github.com/simstudioai/sim/blob/e387d59895d7c770d2d7043332110f75de5ec7f4/docker/realtime.Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9983/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9983/files#diff-19b5efc336260db99a134f1163fa7d7f4980be471df0e953c868b280dd8f4eef
https://github.com/simstudioai/sim/pull/9983/files#diff-19b5efc336260db99a134f1163fa7d7f4980be471df0e953c868b280dd8f4eef
https://github.com/simstudioai/sim/pull/9983/files#diff-19b5efc336260db99a134f1163fa7d7f4980be471df0e953c868b280dd8f4eef
scripts/prune-production-workspace.tshttps://github.com/simstudioai/sim/pull/9983/files#diff-d031d587d7c8215160ab120accfb794f42788abf38f95514ef2149c1cc7ee3b6
View file https://github.com/simstudioai/sim/blob/e387d59895d7c770d2d7043332110f75de5ec7f4/scripts/prune-production-workspace.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9983/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/9983/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.