From 0f6c5b6b0e7783cf2753c1ff2a4e20573e04ed4e Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 2 Dec 2021 14:06:21 +0100 Subject: [PATCH] Change baseimage from node to node-alpine Size drastically decreased --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff467e9..d7e4be0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ .