fix(repo): undo node.js supervisor upgrades and use the multiplatform node.js digest in Dockerfile (#2895)

This commit is contained in:
Eric Allam
2026-01-15 11:49:37 +00:00
committed by GitHub
parent 0b0df071bf
commit aa69b9027d
4 changed files with 12 additions and 3 deletions
+9
View File
@@ -133,6 +133,15 @@ For testable code, **never import env.server.ts** in test files. Pass configurat
The codebase is transitioning from the "legacy run engine" (spread across codebase) to "Run Engine 2.0" (`@internal/run-engine`). Focus on Run Engine 2.0 for new work.
## Docker Image Guidelines
When updating Docker image references in `docker/Dockerfile` or other container files:
- **Always use multiplatform/index digests**, not architecture-specific digests
- Architecture-specific digests (e.g., for `linux/amd64` only) will cause CI failures on different build environments
- On Docker Hub, the multiplatform digest is shown on the main image page, while architecture-specific digests are listed under "OS/ARCH"
- Example: Use `node:20.20-bullseye-slim@sha256:abc123...` where the digest is from the multiplatform index, not from a specific OS/ARCH variant
## Database Migrations (PostgreSQL)
1. Edit `internal-packages/database/prisma/schema.prisma`
+1 -1
View File
@@ -1 +1 @@
v22.22.0
v22.12.0
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:22.22.0-alpine@sha256:bcccf7410b77ca7447d292f616c7b0a89deff87e335fe91352ea04ce8babf50f AS node-22-alpine
FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 AS node-22-alpine
WORKDIR /app
+1 -1
View File
@@ -1,4 +1,4 @@
ARG NODE_IMAGE=node:20.20.0-bullseye-slim@sha256:f52726bba3d47831859be141b4a57d3f7b93323f8fddfbd8375386e2c3b72319
ARG NODE_IMAGE=node:20.20-bullseye-slim@sha256:d6c3903e556d4161f63af4550e76244908b6668e1a7d2983eff4873a0c2b0413
FROM golang:1.23-alpine AS goose_builder
RUN go install github.com/pressly/goose/v3/cmd/goose@latest