I want to run the booksServer first, then the customersServer, then fire main.js
But before firing off main.js I want to make sure that customersServer and booksServer are running first.
How do I do this properly?
Here's my dockerfile now
FROM node:12.14.0
WORKDIR /usr/src/app
COPY package*.json ./
COPY . /usr/src/app
RUN npm install
RUN npm install nodemon -g
EXPOSE 4555
CMD nodemon /books/booksServer.js && nodemon /customers/customersServer.js && node /main/main.js
I know usually you want to separate containers for multiple processes, but I was having gRPC issues when doing this... So I want to try it as a single dockerfile for now.