1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-21 20:39:36 +02:00

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 \ RUN mkdir -p ./public ./data \
&& cd ./client \ && cd ./client \
&& npm install --production \
&& npm run build \ && npm run build \
&& cd .. \ && cd .. \
&& mv ./client/build/* ./public \ && mv ./client/build/* ./public \
@ -19,4 +20,4 @@ EXPOSE 5005
ENV NODE_ENV=production ENV NODE_ENV=production
CMD ["node", "server.js"] CMD ["node", "server.js"]