Railway Deployment #0892a4 fix: add id to Dockerfile cache mount#1
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a Railway Dockerfile parse failure by adding the required cache mount id argument, and updates the Claude PR Review workflow to allow bot-authored PR updates (e.g., Railway) to trigger reviews.
Changes:
- Add
id=...to the BuildKit cache mount used for/root/.npmin the Dockerfile so Railway’s builder accepts the Dockerfile. - Allow the
railway-appbot actor in.github/workflows/claude-code-review.ymlviaallowed_bots.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Dockerfile | Adds a BuildKit cache mount id for the npm cache to satisfy Railway’s Dockerfile builder requirement. |
| .github/workflows/claude-code-review.yml | Allows railway-app bot updates to trigger the Claude PR Review workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| COPY package.json ./ | ||
| RUN --mount=type=cache,target=/root/.npm \ | ||
| RUN --mount=type=cache,id=s/431443cd-9a5a-42e4-9c05-88e84551a5b4-/root/.npm,target=/root/.npm \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Railway's Dockerfile builder rejected the build with "flag '--mount=type=cache,target=/root/.npm' is missing an id argument" at line 11, failing during BUILD_IMAGE before any build step ran.
Solution
Added the required id argument to the cache mount (id=s/431443cd-9a5a-42e4-9c05-88e84551a5b4-/root/.npm), satisfying Railway's builder requirement so the Dockerfile parses and the build proceeds.
Changes
DockerfileContext
3d05dafGenerated by Railway