diff --git a/Dockerfile b/Dockerfile index e20084b1..a048c23a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Install dependencies only when needed -FROM node:21-alpine AS deps +FROM node:22-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat WORKDIR /app @@ -16,7 +16,7 @@ RUN \ # Rebuild the source code only when needed -FROM node:21-alpine AS builder +FROM node:22-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -91,7 +91,7 @@ RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \ # RUN npm run build # Production image, copy all the files and run next -FROM node:21-alpine AS runner +FROM node:22-alpine AS runner WORKDIR /app ENV NODE_ENV production diff --git a/package.json b/package.json index d9a39263..da57e4a5 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@swc/plugin-transform-imports": "3.0.4", "@testing-library/cypress": "10.0.2", "@testing-library/react": "16.0.1", - "@types/node": "20.17.5", + "@types/node": "22.8.6", "@types/react": "18.3.12", "@types/react-dom": "18.3.1", "@types/unidecode": "0.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3e415f59..021284ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -124,8 +124,8 @@ importers: specifier: 16.0.1 version: 16.0.1(@testing-library/dom@10.4.0)(@types/react-dom@18.3.1)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/node': - specifier: 20.17.5 - version: 20.17.5 + specifier: 22.8.6 + version: 22.8.6 '@types/react': specifier: 18.3.12 version: 18.3.12 @@ -1738,8 +1738,8 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} - '@types/node@20.17.5': - resolution: {integrity: sha512-n8FYY/pRxu496441gIcAQFZPKXbhsd6VZygcq+PTSZ75eMh/Ke0hCAROdUa21qiFqKNsPPYic46yXDO1JGiPBQ==} + '@types/node@22.8.6': + resolution: {integrity: sha512-tosuJYKrIqjQIlVCM4PEGxOmyg3FCPa/fViuJChnGeEIhjA46oy8FMVoF9su1/v8PNs2a8Q0iFNyOx0uOF91nw==} '@types/parse-json@4.0.2': resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} @@ -6608,7 +6608,7 @@ snapshots: '@types/connect@3.4.36': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 '@types/estree@1.0.6': {} @@ -6618,17 +6618,17 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 '@types/mysql@2.15.26': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 '@types/node-forge@1.3.11': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 - '@types/node@20.17.5': + '@types/node@22.8.6': dependencies: undici-types: 6.19.8 @@ -6640,7 +6640,7 @@ snapshots: '@types/pg@8.6.1': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 pg-protocol: 1.7.0 pg-types: 2.2.0 @@ -6661,7 +6661,7 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 '@types/semver@7.5.8': {} @@ -6675,7 +6675,7 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 optional: true '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@9.13.0)(typescript@5.6.3))(eslint@9.13.0)(typescript@5.6.3)': @@ -8618,7 +8618,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.17.5 + '@types/node': 22.8.6 merge-stream: 2.0.0 supports-color: 8.1.1