From fbc5d6c5ad4b8a4a408feca2fdef402287df2518 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 14 Jan 2024 21:43:30 +0100 Subject: [PATCH] Force update npm in build --- build/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index a3d5052..7e9865e 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -3,7 +3,7 @@ FROM nikolaik/python-nodejs:python3.10-nodejs20 ENV PATH "/root/.local/bin:$PATH" ENV NODE_PATH "/usr/lib/node_modules" -RUN npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0 cssnano@^4.1.10 \ +RUN npm i -g npm@10.3.0 && npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0 cssnano@^4.1.10 \ && apt-get update \ && apt-get install -y libjpeg-progs optipng \ && rm -rf /var/lib/apt/lists/*