Add npm prune (wont do much here)

This commit is contained in:
Ruakij 2021-12-03 10:50:50 +01:00
parent 298a96bf16
commit 57cf6fb0a7

View File

@ -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/*