Skip to content

Commit

Permalink
Merge pull request codeforboston#393 from zganger/update-node-and-nginx
Browse files Browse the repository at this point in the history
update node and nginx
  • Loading branch information
mikeyavorsky authored Jun 5, 2024
2 parents 163322a + 9821462 commit 3d836fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bookworm
FROM node:20-bookworm-slim

WORKDIR /app/

Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3d836fa

Please sign in to comment.