From 376b6e8767e7f9fb6d2760bd095f2af2719584da Mon Sep 17 00:00:00 2001 From: Shaw Date: Thu, 24 Sep 2026 16:32:12 -0700 Subject: [PATCH 1/2] fix: repair Railway container build base and workspace directory --- Dockerfile.server | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile.server b/Dockerfile.server index acbf086d81..4930c37836 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -11,9 +11,11 @@ # ─── Builder ──────────────────────────────────────────────────────────────── -FROM node:22-bookworm-slim AS node-build-tools +FROM oven/bun:1.1.38-debian AS bun-build-tools -FROM oven/bun:1.1.38-debian AS builder +# Keep Bun pinned without inheriting its obsolete Debian Bullseye base. +FROM node:22-bookworm-slim AS builder +COPY --from=bun-build-tools /usr/local/bin/bun /usr/local/bin/bun RUN apt-get update && apt-get install -y \ python3 make g++ pkg-config \ @@ -27,11 +29,6 @@ ENV CI=true \ SKIP_ASSETS=true \ HYPERIA_SKIP_BROWSER_INSTALL=true -# Vite 8 requires Node 20.19+ or 22.12+. Bun 1.1.38 reports Node 22.6.0 when -# running Vite-backed scripts, so copy in a current real Node binary for those -# build steps while keeping Bun pinned for installs and the rest of the build. -COPY --from=node-build-tools /usr/local/bin/node /usr/local/bin/node - # Root manifests. COPY package.json bun.lock turbo.json tsconfig.json ./ @@ -145,7 +142,7 @@ COPY --from=builder /app/packages/client/package.json ./packages/client # 3. Per-package node_modules for every workspace member used at runtime COPY --from=builder /app/node_modules ./node_modules -RUN mkdir -p node_modules/@hyperia && \ +RUN mkdir -p node_modules/@hyperforge && \ ln -s ../../packages/physx-js-webidl node_modules/@hyperforge/physx-js-webidl && \ ln -s ../../packages/decimation node_modules/@hyperforge/decimation && \ ln -s ../../packages/impostors node_modules/@hyperforge/impostor && \ From b68fbe33c03324cea542695e2abd81d0095124de Mon Sep 17 00:00:00 2001 From: Shaw Date: Thu, 24 Sep 2026 16:35:04 -0700 Subject: [PATCH 2/2] ci: validate the server container before merging --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e398e10ac6..dfa9e5eed9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,8 +179,9 @@ jobs: docker: name: Docker Build runs-on: ubuntu-latest - needs: [build] - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/hackathon') + # Validate the standalone container recipe before merge as well as after it. + # The Dockerfile performs its own install and build. + if: github.event_name == 'pull_request' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/hackathon')) steps: - name: Checkout code uses: actions/checkout@v6