Adding npm install on client code

This commit is contained in:
Rafael Griffo Goes 2021-06-22 22:54:24 -04:00
parent 4c3255107c
commit 472cfd6610

View file

@ -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"]
CMD ["node", "server.js"]