Fix Dockerfile - use Node.js 22 instead of 20 for Astro 6 compatibility

This commit is contained in:
Kunthawat
2026-04-02 10:27:32 +07:00
parent e1aaddc9e9
commit 4bb73d8924

View File

@@ -1,11 +1,11 @@
FROM node:20-alpine AS builder FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps
COPY . . COPY . .
RUN npm run build RUN npm run build
FROM node:20-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps