fix(docker): upgrade to node:22-alpine to resolve build errors
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Optimized for "Insane Mode" (High Concurrency & Throughput)
|
# Optimized for "Insane Mode" (High Concurrency & Throughput)
|
||||||
|
|
||||||
# 1. Base Image
|
# 1. Base Image
|
||||||
FROM node:20-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# Install system utilities for performance tuning
|
# Install system utilities for performance tuning
|
||||||
RUN apk add --no-cache libc6-compat curl bash
|
RUN apk add --no-cache libc6-compat curl bash
|
||||||
@@ -25,6 +25,9 @@ COPY . .
|
|||||||
# Set to 8GB to be safe on most build runners
|
# Set to 8GB to be safe on most build runners
|
||||||
ENV NODE_OPTIONS="--max-old-space-size=8192"
|
ENV NODE_OPTIONS="--max-old-space-size=8192"
|
||||||
|
|
||||||
|
# Debug: Check if astro is installed
|
||||||
|
RUN npm list astro || true
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user