From bbb288025ac9ae19e0d156d57e4c512f3cb5b55a Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 19 Feb 2026 19:15:36 -0800 Subject: [PATCH] fix: upgrade to Node.js 20 for globalThis.crypto support crypto.randomUUID() is used throughout services but crypto is not a global in Node.js 18. Node.js 20 provides globalThis.crypto. Co-Authored-By: Claude Opus 4.6 --- Dockerfile.service | 4 ++-- it0-web-admin/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.service b/Dockerfile.service index 202cb41..6082ae8 100644 --- a/Dockerfile.service +++ b/Dockerfile.service @@ -2,7 +2,7 @@ # Usage: docker build --build-arg SERVICE_NAME=auth-service --build-arg SERVICE_PORT=3001 -f Dockerfile.service . # ===== Build Stage ===== -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder RUN corepack enable @@ -37,7 +37,7 @@ ARG SERVICE_NAME RUN pnpm turbo build --filter='./packages/shared/*' --filter=@it0/${SERVICE_NAME} # ===== Production Stage ===== -FROM node:18-alpine +FROM node:20-alpine RUN corepack enable diff --git a/it0-web-admin/Dockerfile b/it0-web-admin/Dockerfile index 4b86c70..ce445f5 100644 --- a/it0-web-admin/Dockerfile +++ b/it0-web-admin/Dockerfile @@ -1,5 +1,5 @@ # Next.js standalone production Dockerfile -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder WORKDIR /app @@ -11,7 +11,7 @@ COPY . . RUN npm run build # ===== Production ===== -FROM node:18-alpine +FROM node:20-alpine WORKDIR /app