From 3197cee473aa9f65cd0ea5ba2929db6afe33ebc0 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Wed, 22 May 2024 10:21:38 +0000 Subject: [PATCH] build: clean up dockerfile and use clean-install --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c98785d9..0896c116 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ WORKDIR /app COPY package*.json ./ -RUN apt-get update && \ - apt-get install -y git python3 build-essential && \ - npm install && \ +RUN apt-get update && \ + apt-get install -y git python3 build-essential && \ + npm ci && \ + npm cache clean --force && \ apt purge --autoremove -y python3 build-essential && \ rm -rf ~/.cache/ /var/lib/apt/lists/*