Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:16 AS build
FROM node:24 AS build

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other places we would want to bump the Node.js version including...

https://github.com/mcagov/droits/blob/main/webapp/package.json#L5

https://github.com/mcagov/droits/blob/main/.tool-versions#L2

Note that the latter would also affect backoffice, so we would maybe override that in a webapp/.tool-versions file.


WORKDIR /srv
ADD . .
RUN rm -rf node_modules && npm install --cache /tmp/empty-cache

FROM node:16-slim
FROM node:24-slim

WORKDIR /srv
COPY --from=build /srv .
Expand Down