From aac1675f775a3bd70d021da9933c6aa677c7d020 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Wed, 3 Nov 2021 00:11:19 +0000 Subject: [PATCH] Make Docker images smaller by messing up Dockerfile --- server/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 863b7744f..50ffe3d0b 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,8 +1,6 @@ FROM node -RUN apt-get update WORKDIR /app -RUN apt-get install -y sendmail -RUN npm install -g pnpm COPY . /app -RUN pnpm i +RUN apt-get update && apt-get install -y sendmail && rm -rf /var/lib/apt/lists/* +RUN npm install -g pnpm && pnpm i CMD ./hosts.sh && service sendmail start && pnpm start