From 125ea50c15e75798d7068c93437e3ed946970d9f Mon Sep 17 00:00:00 2001 From: bart-maykin Date: Wed, 28 Aug 2024 10:33:34 +0200 Subject: [PATCH] :art: [#50] updated setuptools in docker and fixed npm vulnerabilities --- Dockerfile | 4 +++- package-lock.json | 39 +++++++++++---------------------------- 2 files changed, 14 insertions(+), 29 deletions(-) diff --git a/Dockerfile b/Dockerfile index 049b8eac..8ea085ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app COPY ./requirements /app/requirements -RUN pip install pip -U +RUN pip install pip "setuptools>=70.0.0" RUN pip install -r requirements/production.txt @@ -50,6 +50,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gdal-bin \ && rm -rf /var/lib/apt/lists/* +RUN pip install pip "setuptools>=70.0.0" + COPY --from=build /usr/local/lib/python3.11 /usr/local/lib/python3.11 COPY --from=build /usr/local/bin/uwsgi /usr/local/bin/uwsgi diff --git a/package-lock.json b/package-lock.json index 67ea8b42..d10c27e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2072,28 +2072,11 @@ "@types/node": "*" } }, - "node_modules/@types/eslint": { - "version": "8.56.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "node_modules/@types/estree": { "version": "1.0.5", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true }, "node_modules/@types/express": { "version": "4.17.21", @@ -5899,11 +5882,12 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -8742,12 +8726,11 @@ } }, "node_modules/webpack": { - "version": "5.93.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.93.0.tgz", - "integrity": "sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==", + "version": "5.94.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", + "integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==", "dev": true, "dependencies": { - "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.5", "@webassemblyjs/ast": "^1.12.1", "@webassemblyjs/wasm-edit": "^1.12.1", @@ -8756,7 +8739,7 @@ "acorn-import-attributes": "^1.9.5", "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.0", + "enhanced-resolve": "^5.17.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0",