Use nodemon to watch for live changes
This commit is contained in:
parent
38fe4eb39f
commit
36bcf3786d
@ -4,9 +4,10 @@ WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm install --no-save nodemon
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["node", "src/server.js"]
|
||||
CMD ["npx","nodemon","--watch","src","--ext","js,json","--exec","node","src/server.js"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user