From 472cfd6610d484a3b5d1f3118fdc4ae5926115ae Mon Sep 17 00:00:00 2001 From: Rafael Griffo Goes Date: Tue, 22 Jun 2021 22:54:24 -0400 Subject: [PATCH] Adding npm install on client code --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd99f47..3b448d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ COPY . . RUN mkdir -p ./public ./data \ && cd ./client \ + && npm install --production \ && npm run build \ && cd .. \ && mv ./client/build/* ./public \ @@ -19,4 +20,4 @@ EXPOSE 5005 ENV NODE_ENV=production -CMD ["node", "server.js"] \ No newline at end of file +CMD ["node", "server.js"]