From b15b44e290008f1291b06ea773cece551ca4086e Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Mon, 12 Jul 2021 00:28:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20move=20Dockerfile=20to=20base=20?= =?UTF-8?q?node:alpine=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reduces size from about 1.08GB to 345MB (still not great but hey) --- dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfile b/dockerfile index cf7dd5013..c51f3984b 100644 --- a/dockerfile +++ b/dockerfile @@ -1,10 +1,10 @@ -FROM node:14 - +FROM node:16.4.2-alpine3.14 +# WORKDIR /app COPY . . -RUN npm install -RUN npm run build - +RUN yarn +RUN yarn build +# EXPOSE 3001 VOLUME ["/app/data"] CMD ["npm", "run", "start-server"]