Change baseimage from node to node-alpine

Size drastically decreased
release-1.1
Ruakij 3 years ago
parent cc9e4c7258
commit 0f6c5b6b0e

@ -1,4 +1,4 @@
FROM node:16
FROM node:16-alpine
# Create app directory
WORKDIR /usr/src/app
@ -7,9 +7,8 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN apt-get update
RUN apt-get -y install \
tcpdump
RUN apk update
RUN apk add tcpdump
# Bundle app source
COPY ./src/ .

Loading…
Cancel
Save