diff --git a/Dockerfile b/Dockerfile index 8cbf430c..8a146eb4 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 8a820b69..88699780 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@swc/plugin-transform-imports": "6.0.2", "@testing-library/cypress": "10.0.2", "@testing-library/react": "16.1.0", - "@types/node": "20.17.9", + "@types/node": "22.10.2", "@types/react": "18.3.16", "@types/react-dom": "18.3.5", "@types/unidecode": "0.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9cae3ab2..971c8015 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -124,8 +124,8 @@ importers: specifier: 16.1.0 version: 16.1.0(@testing-library/dom@10.4.0)(@types/react-dom@18.3.5(@types/react@18.3.16))(@types/react@18.3.16)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/node': - specifier: 20.17.9 - version: 20.17.9 + specifier: 22.10.2 + version: 22.10.2 '@types/react': specifier: 18.3.16 version: 18.3.16 @@ -1713,8 +1713,8 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} - '@types/node@20.17.9': - resolution: {integrity: sha512-0JOXkRyLanfGPE2QRCwgxhzlBAvaRdCNMcvbd7jFfpmD4eEXll7LRwy5ymJmyeZqk7Nh7eD2LeUyQ68BbndmXw==} + '@types/node@22.10.2': + resolution: {integrity: sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==} '@types/parse-json@4.0.2': resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} @@ -4546,8 +4546,8 @@ packages: unbzip2-stream@1.4.3: resolution: {integrity: sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==} - undici-types@6.19.8: - resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} unicode-canonical-property-names-ecmascript@2.0.1: resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==} @@ -6483,7 +6483,7 @@ snapshots: '@types/connect@3.4.36': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 '@types/eslint-scope@3.7.7': dependencies: @@ -6503,19 +6503,19 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 '@types/mysql@2.15.26': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 '@types/node-forge@1.3.11': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 - '@types/node@20.17.9': + '@types/node@22.10.2': dependencies: - undici-types: 6.19.8 + undici-types: 6.20.0 '@types/parse-json@4.0.2': {} @@ -6525,7 +6525,7 @@ snapshots: '@types/pg@8.6.1': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 pg-protocol: 1.7.0 pg-types: 2.2.0 @@ -6546,7 +6546,7 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 '@types/shimmer@1.2.0': {} @@ -6556,13 +6556,13 @@ snapshots: '@types/tedious@4.0.14': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 '@types/unidecode@0.1.3': {} '@types/yauzl@2.10.3': dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 optional: true '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@9.16.0)(typescript@5.7.2))(eslint@9.16.0)(typescript@5.7.2)': @@ -8486,7 +8486,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.17.9 + '@types/node': 22.10.2 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -9734,7 +9734,7 @@ snapshots: buffer: 5.7.1 through: 2.3.8 - undici-types@6.19.8: {} + undici-types@6.20.0: {} unicode-canonical-property-names-ecmascript@2.0.1: {}