Skip to content

Commit d81e923

Browse files
Nathan Flurryclaude
andcommitted
fix(website): install git + scope docker context for Railway
The docs now consume github:@rivet-dev/docs-theme, so the build needs git for pnpm to resolve it (apk add git). Add a Dockerfile-scoped .dockerignore that narrows the repo-root build context to the website subtree, so the multi-GB monorepo isn't uploaded — without touching the shared root .dockerignore or the repo's other Dockerfiles. Verified: docker build -f frontend/packages/website/Dockerfile . Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 23d05dd commit d81e923

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

frontend/packages/website/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:22-alpine AS build
22
WORKDIR /app
3-
RUN npm install -g pnpm@9
3+
# git is required for pnpm to resolve the github: @rivet-dev/docs-theme dependency.
4+
RUN apk add --no-cache git && npm install -g pnpm@9
45

56
# Copy website package
67
COPY frontend/packages/website/package.json ./
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Scoped to the website Dockerfile only (BuildKit uses <dockerfile>.dockerignore
2+
# when present). Narrows the repo-root build context to the website subtree so
3+
# the multi-GB monorepo isn't uploaded — without affecting the shared root
4+
# .dockerignore or the other Dockerfiles in this repo.
5+
*
6+
!frontend
7+
frontend/*
8+
!frontend/packages
9+
frontend/packages/*
10+
!frontend/packages/website
11+
**/node_modules
12+
**/dist
13+
**/.astro

0 commit comments

Comments
 (0)