Skip to content

fix(docker): pin node:22.23.5-alpine - #54

Merged
KMKoushik merged 1 commit into
mainfrom
fix/docker-node-pin
Nov 12, 2026
Merged

KMKoushik merged 1 commit into
mainfrom
fix/docker-node-pin

Conversation

@KMKoushik

Copy link
Copy Markdown
Contributor

docker/Dockerfile was on Node 20 (EOL), on node:20.11.1-alpine and node:20-alpine3.19. This pins both stages to node:22.23.5-alpine (the Nov 11 security release) and installs with --frozen-lockfile using pnpm@8.9.2, the version in packageManager.

It also fixes three bugs that were already on main. As it stood, the image couldn't build or migrate:

  • pnpm install ran before the schema was copied in, so postinstall (prisma generate) failed. The schema is now copied first.
  • Alpine 3.23 ships without OpenSSL, so Prisma fell back to openssl-1.1.x. openssl is now installed.
  • start.sh ran pnpx prisma, which downloads the latest Prisma from npm. That version refuses migrate deploy, and because start.sh doesn't stop on errors, the server started on an empty schema. The release stage now installs the locked prisma@5.22.0 CLI, and start.sh uses set -e.

Railway doesn't use this Dockerfile (the service builds with Nixpacks/Railpack), and no workflow builds or publishes it. Only docker/build.sh uses it, run by hand.

Verified locally (arm64): the build passes. Against an empty Postgres, all 18 migrations apply, /api/healthz and /auth/signin return 200, and the image runs node -v = v22.23.5 and Prisma 5.22.0 on linux-musl-arm64-openssl-3.0.x.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a640223-869a-40c2-be52-c7610e2877e1
Commits

Reviewing files that changed from the base of the PR and between 33c4cdd and 8b07c2d.

Files selected for processing: 2

  • docker/Dockerfile
  • docker/start.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@KMKoushik
KMKoushik merged commit bf2143c into main Nov 12, 2026
2 checks passed
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