Build using node 22
This commit is contained in:
parent
6ab52c1830
commit
a6359d9516
@ -1,4 +1,4 @@
|
|||||||
FROM node:21-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
@ -7,7 +7,7 @@ RUN npm ci
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:21-alpine
|
FROM node:22-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN chown -R node:node /app
|
RUN chown -R node:node /app
|
||||||
USER node:node
|
USER node:node
|
||||||
|
Reference in New Issue
Block a user