Compare commits

...

2 Commits

Author SHA1 Message Date
57cf6fb0a7 Add npm prune (wont do much here) 2021-12-03 10:50:50 +01:00
298a96bf16 apk-install on 1 line and delete cache when done 2021-12-03 10:48:28 +01:00

View File

@ -7,8 +7,11 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN apk update
RUN apk add tcpdump
# remove development dependencies
RUN npm prune --production
# Install required apk-packages & delete cache
RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*
# Bundle app source
COPY ./src/ .