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 f0f1e298..fdfe5935 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.6", + "@types/node": "22.9.0", "@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 da73363b..6bda8a89 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.6 - version: 20.17.6 + specifier: 22.9.0 + version: 22.9.0 '@types/react': specifier: 18.3.12 version: 18.3.12 @@ -1728,8 +1728,8 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} - '@types/node@20.17.6': - resolution: {integrity: sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==} + '@types/node@22.9.0': + resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} '@types/parse-json@4.0.2': resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} @@ -6575,7 +6575,7 @@ snapshots: '@types/connect@3.4.36': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 '@types/eslint-scope@3.7.7': dependencies: @@ -6595,17 +6595,17 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 '@types/mysql@2.15.26': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 '@types/node-forge@1.3.11': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 - '@types/node@20.17.6': + '@types/node@22.9.0': dependencies: undici-types: 6.19.8 @@ -6617,7 +6617,7 @@ snapshots: '@types/pg@8.6.1': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 pg-protocol: 1.7.0 pg-types: 2.2.0 @@ -6638,7 +6638,7 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 '@types/semver@7.5.8': {} @@ -6652,7 +6652,7 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 optional: true '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@9.14.0)(typescript@5.6.3))(eslint@9.14.0)(typescript@5.6.3)': @@ -8594,7 +8594,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.17.6 + '@types/node': 22.9.0 merge-stream: 2.0.0 supports-color: 8.1.1