diff --git a/Dockerfile b/Dockerfile index c91a8ef..3ee61c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 # ---- Builder ---- -FROM --platform=$BUILDPLATFORM node:18-alpine3.16 AS builder +FROM --platform=$BUILDPLATFORM node:20-alpine3.16 AS builder RUN mkdir /build WORKDIR /build @@ -19,7 +19,7 @@ RUN pnpm run generate RUN pnpm run build # ---- Dependencies ---- -FROM --platform=$BUILDPLATFORM node:18-alpine3.16 AS deps +FROM --platform=$BUILDPLATFORM node:20-alpine3.16 AS deps WORKDIR /deps @@ -34,7 +34,7 @@ RUN pnpm install --frozen-lockfile --prod --no-optional RUN pnpm dlx prisma generate # ---- Runner ---- -FROM --platform=$BUILDPLATFORM node:18-alpine3.16 +FROM --platform=$BUILDPLATFORM node:20-alpine3.16 RUN apk add --update --no-cache dumb-init git RUN npm install -g pnpm@8 diff --git a/package.json b/package.json index b7bf0f9..34bb5b7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "devDependencies": { "@types/cron": "2.0.1", "@types/ioredis": "4.28.10", - "@types/node": "18.18.3", + "@types/node": "20.8.10", "eslint": "8.52.0", "eslint-config-snazzah": "1.2.1", "prisma": "5.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e9c696..835a268 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,8 +47,8 @@ devDependencies: specifier: 4.28.10 version: 4.28.10 '@types/node': - specifier: 18.18.3 - version: 18.18.3 + specifier: 20.8.10 + version: 20.8.10 eslint: specifier: 8.52.0 version: 8.52.0 @@ -60,7 +60,7 @@ devDependencies: version: 5.3.1 ts-node: specifier: 10.9.1 - version: 10.9.1(@types/node@18.18.3)(typescript@5.2.2) + version: 10.9.1(@types/node@20.8.10)(typescript@5.2.2) typescript: specifier: 5.2.2 version: 5.2.2 @@ -289,13 +289,13 @@ packages: resolution: {integrity: sha512-WHa/1rtNtD2Q/H0+YTTZoty+/5rcE66iAFX2IY+JuUoOACsevYyFkSYu/2vdw+G5LrmO7Lxowrqm0av4k3qWNQ==} dependencies: '@types/luxon': 3.3.3 - '@types/node': 18.18.3 + '@types/node': 20.8.10 dev: true /@types/ioredis@4.28.10: resolution: {integrity: sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==} dependencies: - '@types/node': 18.18.3 + '@types/node': 20.8.10 dev: true /@types/json-schema@7.0.14: @@ -309,8 +309,10 @@ packages: /@types/luxon@3.3.3: resolution: {integrity: sha512-/BJF3NT0pRMuxrenr42emRUF67sXwcZCd+S1ksG/Fcf9O7C3kKCY4uJSbKBE4KDUIYr3WMsvfmWD8hRjXExBJQ==} - /@types/node@18.18.3: - resolution: {integrity: sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==} + /@types/node@20.8.10: + resolution: {integrity: sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==} + dependencies: + undici-types: 5.26.5 dev: true /@types/semver@7.5.4: @@ -2098,7 +2100,7 @@ packages: is-number: 7.0.0 dev: true - /ts-node@10.9.1(@types/node@18.18.3)(typescript@5.2.2): + /ts-node@10.9.1(@types/node@20.8.10)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -2117,7 +2119,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.18.3 + '@types/node': 20.8.10 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -2222,6 +2224,10 @@ packages: has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true + /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: