diff --git a/.github/workflows/aws-frontend-deploy.yml b/.github/workflows/aws-frontend-deploy.yml index 80ebe0be..05ef68a5 100644 --- a/.github/workflows/aws-frontend-deploy.yml +++ b/.github/workflows/aws-frontend-deploy.yml @@ -51,7 +51,7 @@ jobs: - name: Checkout uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 cache: 'npm' - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 diff --git a/.nvmrc b/.nvmrc index 3c032078..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +20 diff --git a/backend/Dockerfile.api b/backend/Dockerfile.api index 6b2f7576..bf7c5cff 100644 --- a/backend/Dockerfile.api +++ b/backend/Dockerfile.api @@ -1,4 +1,4 @@ -FROM node:18.12.0 AS api-development +FROM node:20.11 AS api-development RUN mkdir /srv/backend WORKDIR /srv/backend RUN mkdir -p node_modules @@ -6,14 +6,14 @@ COPY package.json yarn.lock ./ RUN yarn install --pure-lockfile COPY . . -FROM node:18.12.0 AS api-test +FROM node:20.11 AS api-test RUN mkdir /srv/backend WORKDIR /srv/backend COPY package.json yarn.lock ./ RUN yarn install --silent RUN mkdir -p node_modules -FROM node:18.12.0-slim AS api-production +FROM node:20.11-slim AS api-production EXPOSE 4000 USER node WORKDIR /srv/backend diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev index c1afb205..e204e5ad 100644 --- a/backend/Dockerfile.dev +++ b/backend/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM node:18.12.0 AS api-development +FROM node:20.11 AS api-development RUN mkdir /srv/backend WORKDIR /srv/backend RUN mkdir -p node_modules diff --git a/backend/Dockerfile.prod b/backend/Dockerfile.prod index 382e9350..a3e025bc 100644 --- a/backend/Dockerfile.prod +++ b/backend/Dockerfile.prod @@ -1,4 +1,4 @@ -FROM node:18.12.0 AS api-builder +FROM node:20.11 AS api-builder RUN mkdir /srv/backend WORKDIR /srv/backend RUN mkdir -p node_modules @@ -6,7 +6,7 @@ COPY package.json yarn.lock ./ RUN yarn install --pure-lockfile COPY . . -FROM node:18.12.0-slim AS api-production +FROM node:20.11-slim AS api-production EXPOSE 4000 USER node WORKDIR /srv/backend diff --git a/client/Dockerfile.client b/client/Dockerfile.client index 0268eedf..bb53d2d7 100644 --- a/client/Dockerfile.client +++ b/client/Dockerfile.client @@ -1,4 +1,4 @@ -FROM node:18-alpine AS client-development +FROM node:20.11-alpine AS client-development RUN mkdir /srv/client && chown node:node /srv/client WORKDIR /srv/client USER node @@ -6,7 +6,7 @@ RUN mkdir -p node_modules COPY --chown=node:node package.json package.json ./ RUN npm install --silent -FROM node:18.12.0-slim AS client-builder +FROM node:20-slim AS client-builder USER node WORKDIR /srv/client COPY --from=client-development /srv/client/node_modules node_modules diff --git a/client/Dockerfile.dev b/client/Dockerfile.dev index 879ba998..989170dd 100644 --- a/client/Dockerfile.dev +++ b/client/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM node:18-alpine AS client-development +FROM node:20.11-alpine AS client-development RUN mkdir /srv/client && chown node:node /srv/client WORKDIR /srv/client USER node diff --git a/client/Dockerfile.prod b/client/Dockerfile.prod index cbc00c7d..d2e2ac38 100644 --- a/client/Dockerfile.prod +++ b/client/Dockerfile.prod @@ -1,4 +1,4 @@ -FROM node:18-alpine AS node-modules-install +FROM node:20.11-alpine AS node-modules-install RUN mkdir /srv/client && chown node:node /srv/client WORKDIR /srv/client USER node @@ -6,7 +6,7 @@ RUN mkdir -p node_modules COPY --chown=node:node package.json package.json ./ RUN npm install --no-update-notifier -FROM node:18-slim AS client-builder +FROM node:20-slim AS client-builder USER node WORKDIR /srv/client COPY --from=node-modules-install /srv/client/node_modules node_modules diff --git a/client/package.json b/client/package.json index 8d69e4ec..69141509 100644 --- a/client/package.json +++ b/client/package.json @@ -72,6 +72,6 @@ "vitest": "^0.33.0" }, "engines": { - "node": "<=18.0.0" + "node": "<=20.0.0" } }