chore: update node version (volta & docker) + only install prod deps on prod-deps layer

This commit is contained in:
Sonny
2024-11-07 01:48:39 +01:00
committed by Sonny
parent 34d2abcc13
commit 6eb88871e8
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# Source : https://github.com/adonisjs-community/adonis-packages/blob/main/Dockerfile
FROM node:20-alpine3.18 AS base
FROM node:22.11-alpine3.20 AS base
RUN apk --no-cache add curl
RUN corepack enable
@@ -15,7 +15,7 @@ RUN pnpm install --ignore-scripts
FROM base AS production-deps
WORKDIR /app
ADD package.json pnpm-lock.yaml ./
RUN pnpm install --ignore-scripts
RUN pnpm install --ignore-scripts --prod
# Build stage
FROM base AS build

View File

@@ -118,6 +118,6 @@
"*.js,*.ts,*.jsx,*.tsx": "eslint --cache --fix"
},
"volta": {
"node": "22.2.0"
"node": "22.11.0"
}
}