From 57cf6fb0a7ae8b106278d843821339502a8a1645 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Fri, 3 Dec 2021 10:50:50 +0100 Subject: [PATCH] Add npm prune (wont do much here) --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 65aee76..c1cf0d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ WORKDIR /usr/src/app COPY package*.json ./ RUN npm install +# remove development dependencies +RUN npm prune --production + # Install required apk-packages & delete cache RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*