Merge pull request #46 from rgriffogoes/master
Adding npm install on client code
This commit is contained in:
commit
db4a10171e
1 changed files with 2 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue