fix(migrator): use node:20 — tsx 4.21 ESM resolution broken on node:22
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-05-13 18:14:59 +01:00
parent 7c5b5979bd
commit d9cc08d7f1

View file

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
# Migrator image: node:22 + full source + pnpm for `pnpm payload migrate` and `pnpm payload migrate:create`
# Migrator image: node:20 + full source + pnpm for `pnpm payload migrate` and `pnpm payload migrate:create`
FROM node:22-alpine AS base
FROM node:20-alpine AS base
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app