From b37a4c314dd2367e22207039b2f335973ab3f180 Mon Sep 17 00:00:00 2001 From: Kasper Juul Hermansen Date: Tue, 24 Oct 2023 00:34:47 +0000 Subject: [PATCH] Update all dependencies --- Dockerfile | 6 +++--- package.json | 2 +- yarn.lock | 15 +++++++++++---- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index bca6d6b..7c5d7b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 1. Install dependencies only when needed -FROM node:20-alpine AS deps +FROM node:21-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 @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile # 2. Rebuild the source code only when needed -FROM node:20-alpine AS builder +FROM node:21-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -16,7 +16,7 @@ COPY . . RUN yarn build # 3. Production image, copy all the files and run next -FROM node:20-alpine AS runner +FROM node:21-alpine AS runner WORKDIR /app ENV NODE_ENV=production diff --git a/package.json b/package.json index 1b750cd..547efa2 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "uuid": "9.0.1" }, "devDependencies": { - "@types/node": "18.18.6", + "@types/node": "20.8.7", "@types/react": "18.2.31", "@types/uuid": "9.0.6", "autoprefixer": "10.4.16", diff --git a/yarn.lock b/yarn.lock index e2d2103..4203de7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -130,10 +130,12 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@types/node@18.18.6": - version "18.18.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.6.tgz#26da694f75cdb057750f49d099da5e3f3824cb3e" - integrity sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w== +"@types/node@20.8.7": + version "20.8.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.7.tgz#ad23827850843de973096edfc5abc9e922492a25" + integrity sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ== + dependencies: + undici-types "~5.25.1" "@types/prop-types@*": version "15.7.5" @@ -837,6 +839,11 @@ typescript@5.2.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +undici-types@~5.25.1: + version "5.25.3" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.25.3.tgz#e044115914c85f0bcbb229f346ab739f064998c3" + integrity sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA== + update-browserslist-db@^1.0.11: version "1.0.11" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940"