automate node version
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s

This commit is contained in:
2026-04-24 18:30:10 -05:00
parent 24d126eeb9
commit de2d90f265
9 changed files with 9352 additions and 13 deletions

View File

@@ -1,14 +1,14 @@
# ---- Build stage ----
FROM node:22-alpine AS builder
ARG NODE_VERSION=25-alpine
FROM node:${NODE_VERSION} AS builder
WORKDIR /app
COPY server/package.json server/package-lock.json* ./
RUN npm install && npm audit fix
RUN npm install
COPY server/src ./src
COPY server/tsconfig.json ./
RUN npm run build
# ---- Runtime stage ----
FROM node:22-alpine
FROM node:${NODE_VERSION}
WORKDIR /app
COPY --from=builder /app/dist ./dist
# schema.sql is read by the migrate script at runtime