change node version and modify docker compose

This commit is contained in:
SennayT
2026-05-28 14:03:49 +03:00
parent e7bb4db4ce
commit af5f4cd038
4 changed files with 21 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
# Build from monorepo root: docker build -f apps/edr-passenger-api/Dockerfile .
# On start: runs prisma migrate deploy + seed, then the API.
FROM node:22-alpine AS base
FROM node:24.15.0-alpine AS base
RUN apk add --no-cache libc6-compat
RUN corepack enable
WORKDIR /app
@@ -31,7 +31,7 @@ RUN if [ -d node_modules/.prisma ]; then \
cp -r node_modules/.prisma /deploy/node_modules/.prisma; \
fi
FROM node:22-alpine AS runner
FROM node:24.15.0-alpine AS runner
RUN apk add --no-cache libc6-compat
RUN corepack enable && corepack prepare pnpm@11.1.1 --activate
ENV NODE_ENV=production