apk-install on 1 line and delete cache when done

This commit is contained in:
Ruakij 2021-12-03 10:48:28 +01:00
parent b98dff947d
commit 298a96bf16

View File

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