node docs and switch to pnpm
All checks were successful
Build, Test & Publish / Build (pull_request) Successful in 1m0s
Build, Test & Publish / Build and Publish Container Image (pull_request) Has been skipped
Build, Test & Publish / Deploy to Infrastructure (pull_request) Has been skipped

This commit is contained in:
2026-03-04 07:34:58 +11:00
parent bfc110e1c1
commit 80031f13b4
7 changed files with 1705 additions and 1826 deletions

View File

@@ -2,21 +2,22 @@ FROM nginx:alpine AS base
EXPOSE 80
WORKDIR /app
FROM node:20 as build
FROM node:24 AS build
WORKDIR /src
# Copy package.json and package-lock.json
COPY package.json .
COPY package-lock.json .
COPY pnpm-lock.yaml .
# Install dependencies
RUN npm ci
RUN corepack enable
RUN pnpm install --frozen-lockfile
# Copy the app
COPY . .
# Build the app
RUN npm run build
RUN pnpm run build
FROM base AS final
WORKDIR /usr/share/nginx/html