From a5040cb2230c0146e269257b32a361609179fe44 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 16 Oct 2021 08:33:50 +0200 Subject: [PATCH] Improve docker builds --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0eaa4de..bccdbb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ -FROM node:14 -RUN mkdir /app +FROM node:14-alpine WORKDIR /app -COPY package.json /app -COPY yarn.lock /app +COPY . . RUN yarn --production --pure-lockfile -COPY . /app EXPOSE 3000 -CMD yarn start +CMD yarn start \ No newline at end of file