From 78010c0fc76d1e583ff172cba9d8baf8bd807fba Mon Sep 17 00:00:00 2001 From: Adam Buckingham Date: Thu, 17 Oct 2024 08:51:21 -0400 Subject: [PATCH] Upgrade to Node 20 --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 25386e77..7e8ec1b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Compile and Build angular codebase # base image -FROM node:16-alpine as builder +FROM node:20-alpine as builder # install chrome for protractor tests # RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - @@ -17,7 +17,6 @@ WORKDIR /app # install app dependencies COPY package.json ./ COPY .snyk ./ -COPY yarn.lock ./ RUN yarn install @@ -30,7 +29,7 @@ RUN yarn run build-${environment} # Stage 2: Serve app with nginx server # Use official nginx image as the base image -FROM nginx:1.25.3-alpine3.18 +FROM nginx:1.27.2-alpine # Set working directory to nginx asset directory WORKDIR /usr/share/nginx/html