Merge pull request #46 from rgriffogoes/master

Adding npm install on client code
This commit is contained in:
pawelmalak 2021-06-23 11:09:17 +02:00 committed by GitHub
commit db4a10171e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"]