Use alpine image for smaller final image
All checks were successful
/ Build App (push) Successful in 53s
Publish / tests (push) Successful in 52s
Publish / Publishing (push) Successful in 1m22s

This commit is contained in:
Valentin Brandl 2024-07-17 13:10:17 +02:00
parent e5263a5eba
commit 19f0bbe82e
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -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 .