Skip to content

Commit

Permalink
Update the base image for security again
Browse files Browse the repository at this point in the history
The node:16 image tag is no longer being maintained with OS package
updates, so vulnerabilities have started to build up in it.
  • Loading branch information
fedde-s committed Dec 4, 2024
1 parent ba2527d commit 5906cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bookworm as build
FROM node:18 as build
# make sure app variable is set and valid
ARG app=""
RUN : "${app:?Missing --build-arg app}"
Expand All @@ -12,7 +12,7 @@ RUN yarn --network-timeout 100000
RUN yarn build:$app
RUN mv ./apps/$app/bundle-$app/ ./bundle/

FROM node:16-bookworm
FROM node:18
RUN npm install --location=global serve
COPY --from=build /tmp/app/bundle/ /var/www/app/
WORKDIR /var/www/app/
Expand Down

0 comments on commit 5906cc6

Please sign in to comment.