From f16c4fbd5fcdac86dbf669bbb72e470ca1254a81 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 28 May 2018 20:22:18 -0600 Subject: [PATCH] Optimized Dockerfile order --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0c25b2..df50eca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,12 @@ FROM node:alpine RUN npm install --global yarn -ADD dist/ /app/dist -ADD public/ /app/public ADD package.json yarn.lock /app/ WORKDIR /app/ RUN yarn install --production +ADD dist/ /app/dist +ADD public/ /app/public + EXPOSE 8080 ENTRYPOINT [ "npm", "run", "start" ]