From 5763542a041ca844486b52b88609c181e8a5589e Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 2 May 2022 21:54:25 -0400 Subject: [PATCH] Fixed dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fb74b3..d38e739 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ WORKDIR /app COPY . . # Install & build -RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi \ - if [ ! -d "dist" ]; then npm run build; fi +RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi +RUN if [ ! -d "dist" ]; then npm run build; fi # Use Nginx to serve FROM nginx:1.20-alpine