From ba2527d9dde9ae48a05fa0b73d8f4d4a7d4a82f8 Mon Sep 17 00:00:00 2001 From: Fedde Schaeffer Date: Wed, 18 Oct 2023 09:11:39 +0200 Subject: [PATCH] Update the OS of the base image for security A number of unresolved vulnerabilities exist in the buster/oldoldstable Debian release that's the base image of the previous tag. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47691c11d..f20d6920b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 as build +FROM node:16-bookworm as build # make sure app variable is set and valid ARG app="" RUN : "${app:?Missing --build-arg app}" @@ -12,7 +12,7 @@ RUN yarn --network-timeout 100000 RUN yarn build:$app RUN mv ./apps/$app/bundle-$app/ ./bundle/ -FROM node:16 +FROM node:16-bookworm RUN npm install --location=global serve COPY --from=build /tmp/app/bundle/ /var/www/app/ WORKDIR /var/www/app/