From 9821462a0024cde7c078c67a249f8fdd965d46da Mon Sep 17 00:00:00 2001 From: Zack Ganger Date: Tue, 4 Jun 2024 20:59:26 -0400 Subject: [PATCH] update node and nginx --- frontend/Dockerfile | 2 +- frontend/Dockerfile.cloud | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5a319382..49a72d20 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-bookworm +FROM node:20-bookworm-slim WORKDIR /app/ diff --git a/frontend/Dockerfile.cloud b/frontend/Dockerfile.cloud index fbb8d098..e98744b6 100644 --- a/frontend/Dockerfile.cloud +++ b/frontend/Dockerfile.cloud @@ -2,7 +2,7 @@ # From repository root folder # docker build --build-arg ENV=development -t police-data-trust-frontend-dev -f frontend/Dockerfile.cloud ./frontend -FROM node:16-bookworm as builder +FROM node:20-bookworm-slim as builder WORKDIR /app/ ARG ENV @@ -14,7 +14,7 @@ COPY . . RUN npm run build:${ENV} -FROM nginx:1.21 +FROM nginx:1.27-bookworm COPY --from=builder /app/out /usr/share/nginx/html COPY --from=builder /app/nginx/default.conf /etc/nginx/conf.d/default.conf EXPOSE 80