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 # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -7,9 +7,8 @@ WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install
RUN apt-get update RUN apk update
RUN apt-get -y install \ RUN apk add tcpdump
tcpdump
# Bundle app source # Bundle app source
COPY ./src/ . COPY ./src/ .

Loading…
Cancel
Save