fix(docker): upgrade Node.js version to 22-alpine in Dockerfile to resolve reference error

This commit is contained in:
cfngc4594 2025-02-19 17:30:43 +08:00
parent 1d65c3cb4a
commit 342d35de6f
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Upgrade to Node.js v20 to fix `ReferenceError: File is not defined` issue
# Reference: https://github.com/vercel/next.js/discussions/56032
FROM node:20-alpine AS base
FROM node:22-alpine AS base
# Install dependencies only when needed
FROM base AS deps

View File

@ -1,4 +1,4 @@
FROM alpine:latest as builder
FROM alpine:latest AS builder
RUN apk add --no-cache git npm