Use alpine image for smaller final image
This commit is contained in:
parent
e5263a5eba
commit
19f0bbe82e
@ -1,4 +1,4 @@
|
||||
FROM node:21 AS builder
|
||||
FROM node:21-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
@ -7,7 +7,7 @@ RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:21
|
||||
FROM node:21-alpine
|
||||
USER node:node
|
||||
WORKDIR /app
|
||||
COPY package.json .
|
||||
|
Reference in New Issue
Block a user