From 19f0bbe82e34a1c72e4b191d7a9a17e89dd43ec8 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Wed, 17 Jul 2024 13:10:17 +0200 Subject: [PATCH] Use alpine image for smaller final image --- Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index e9396d0..c8cb092 100644 --- a/Containerfile +++ b/Containerfile @@ -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 .