diff --git a/.node-version b/.node-version index 8ce70308..2a393af5 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.16.0 +20.18.0 diff --git a/Dockerfile b/Dockerfile index 006e43f2..9ec3feb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1.11.1@sha256:10c699f1b6c8bdc8f6b4ce8974855dd8542f1768c26eb240237b8f1c9c6c9976 -FROM node:20.16.0-bookworm@sha256:d3c8ababe9566f9f3495d0d365a5c4b393f607924647dd52e75bf4f8a54effd3 AS deps +FROM node:20.18.0-bookworm@sha256:a7a3b7ec6de4b11bb2d673b31de9d28c6da09c557ee65453672c8e4f754c23fc AS deps ARG NODE_ENV=production WORKDIR /app RUN npm config set cache /.npm @@ -11,7 +11,7 @@ RUN --mount=type=cache,id=npm-$TARGETPLATFORM,target=/.npm \ npm ci RUN node -e "console.log(require('@discordjs-japan/om-syrinx').JPREPROCESS_VERSION)" > .jpreprocess-version -FROM --platform=$BUILDPLATFORM node:20.16.0-bookworm@sha256:d3c8ababe9566f9f3495d0d365a5c4b393f607924647dd52e75bf4f8a54effd3 AS builder +FROM --platform=$BUILDPLATFORM node:20.18.0-bookworm@sha256:a7a3b7ec6de4b11bb2d673b31de9d28c6da09c557ee65453672c8e4f754c23fc AS builder ARG NODE_ENV=development WORKDIR /app RUN npm config set cache /.npm @@ -24,16 +24,16 @@ RUN --mount=type=cache,id=npm-$BUILDPLATFORM,target=/.npm \ COPY --link ./src/ ./src/ RUN npm run build -FROM --platform=$BUILDPLATFORM node:20.16.0-bookworm@sha256:d3c8ababe9566f9f3495d0d365a5c4b393f607924647dd52e75bf4f8a54effd3 AS dictionary +FROM --platform=$BUILDPLATFORM node:20.18.0-bookworm@sha256:a7a3b7ec6de4b11bb2d673b31de9d28c6da09c557ee65453672c8e4f754c23fc AS dictionary WORKDIR /app COPY --link --from=deps /app/.jpreprocess-version ./ RUN curl -L "https://github.com/jpreprocess/jpreprocess/releases/download/v$(cat .jpreprocess-version)/naist-jdic-jpreprocess.tar.gz" | tar xzf - -FROM --platform=$BUILDPLATFORM node:20.16.0-bookworm@sha256:d3c8ababe9566f9f3495d0d365a5c4b393f607924647dd52e75bf4f8a54effd3 AS models +FROM --platform=$BUILDPLATFORM node:20.18.0-bookworm@sha256:a7a3b7ec6de4b11bb2d673b31de9d28c6da09c557ee65453672c8e4f754c23fc AS models WORKDIR /app RUN curl -L "https://github.com/icn-lab/htsvoice-tohoku-f01/archive/refs/heads/master.tar.gz" | tar xzf - -FROM --platform=$BUILDPLATFORM node:20.16.0-bookworm@sha256:d3c8ababe9566f9f3495d0d365a5c4b393f607924647dd52e75bf4f8a54effd3 AS user-dictionary +FROM --platform=$BUILDPLATFORM node:20.18.0-bookworm@sha256:a7a3b7ec6de4b11bb2d673b31de9d28c6da09c557ee65453672c8e4f754c23fc AS user-dictionary WORKDIR /app COPY --link --from=deps /app/.jpreprocess-version ./ RUN curl -L "https://github.com/jpreprocess/jpreprocess/releases/download/v$(cat .jpreprocess-version)/jpreprocess-$(uname -m)-unknown-linux-gnu.tgz" | tar xzf - diff --git a/package-lock.json b/package-lock.json index 86d8b0cd..a3fe8842 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@eslint/js": "9.14.0", "@types/eslint__js": "8.42.3", "@types/eslint-config-prettier": "6.11.3", - "@types/node": "20.16.1", + "@types/node": "20.17.6", "dotenv": "16.4.5", "esbuild": "0.24.0", "esbuild-plugin-version-injector": "1.2.1", @@ -1268,9 +1268,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.16.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.1.tgz", - "integrity": "sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==", + "version": "20.17.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.6.tgz", + "integrity": "sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==", "license": "MIT", "dependencies": { "undici-types": "~6.19.2" diff --git a/package.json b/package.json index 0108575a..76c90309 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@eslint/js": "9.14.0", "@types/eslint__js": "8.42.3", "@types/eslint-config-prettier": "6.11.3", - "@types/node": "20.16.1", + "@types/node": "20.17.6", "dotenv": "16.4.5", "esbuild": "0.24.0", "esbuild-plugin-version-injector": "1.2.1",