Skip to content

Restore the from-source Dockerfile for Railway branch builds - #1086

Merged
nick-potts merged 2 commits into
mainfrom
restore-source-dockerfile
Sep 25, 2026
Merged

nick-potts merged 2 commits into
mainfrom
restore-source-dockerfile

Conversation

@nick-potts

Copy link
Copy Markdown
Contributor

Summary

Brings back the from-source Dockerfile that #1063 removed, so Railway can build and deploy any branch without CI publishing an image first.

 /
+├── Dockerfile         # from source: Rust SDK → pnpm build → runtime (Railway builds branches)
 └── Dockerfile.cloud   # runtime only: packages CI's prebuilt output (production, unchanged)

The file is identical to the one before #1063, including the Railway cache mounts keyed to the web service ID. That ID is the same in every Railway environment, so staging and PR environments share the caches.

Production is unchanged: it still runs the ghcr.io/getployz/ployz2-cloud:main image that CI publishes.

Evidence

  • Before: Railway's staging environment building web from prototype/build-order-dashboard failed: "The configured root directory was not found in the deployed source". The error was misleading; the actual cause was that no Dockerfile existed.
    After: the same branch with this file restored, on top of current main, built from source on Railway and deployed: staging web: SUCCESS … prototype/build-order-dashboard eacca201, serving HTTP 200. The build ran all three stages (Rust SDK, pnpm build:app, runtime) and the new single-baseline migration.

Merge Danger

Door: two-way

A new file plus two README lines; nothing in CI or production reads it.

Blast Radius: none

Only Railway services that build from source with dockerfile path /Dockerfile use it.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@nick-potts
nick-potts merged commit f995474 into main Sep 25, 2026
14 checks passed
@nick-potts
nick-potts deleted the restore-source-dockerfile branch September 30, 2026 15:14
nick-potts added a commit that referenced this pull request Sep 30, 2026
* Restore the from-source Dockerfile so Railway can build any branch

* Document the from-source Dockerfile

---------

Co-authored-by: Codex <codex@codex-vm.tailcb9c5.ts.net>
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