From 4a06b3fd544dca31f32248ea01534346e5e2afe8 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Fri, 2 Aug 2024 13:01:07 +0300 Subject: [PATCH] Missing express-rate-limit in Docker image Add express-rate-limit to Dockerfile Move to express-rate-limit to devDependencies --- webui/Dockerfile | 3 ++- webui/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webui/Dockerfile b/webui/Dockerfile index 4ade92d3f..bbc429014 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -26,7 +26,8 @@ COPY --chown=node:node --from=builder /home/node/builder/lib/default/server.js / WORKDIR /home/node/webui # Install Express server -RUN yarn add express@4.17.1 +RUN yarn add express@4.18.2 +RUN yarn add express-rate-limit@7.2.0 EXPOSE 3000 ENTRYPOINT ["node", "lib/default/server"] diff --git a/webui/package.json b/webui/package.json index 75ff04ea5..8fcedd258 100644 --- a/webui/package.json +++ b/webui/package.json @@ -44,7 +44,6 @@ "clipboard-copy": "^4.0.1", "clsx": "^1.2.1", "dompurify": "^3.0.4", - "express-rate-limit": "^7.2.0", "fetch-retry": "^5.0.6", "lodash": "^4.17.21", "markdown-it": "^13.0.1", @@ -92,6 +91,7 @@ "eslint": "^8.44.0", "eslint-plugin-react": "^7.32.2", "express": "^4.18.2", + "express-rate-limit": "^7.2.0", "mocha": "^10.2.0", "rimraf": "^5.0.5", "source-map-loader": "^4.0.1",