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
|
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
|
FROM node:21-alpine
|
||||||
USER node:node
|
USER node:node
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
Reference in New Issue
Block a user