Use nodemon to watch for live changes

This commit is contained in:
Apher Fox 2026-07-01 20:26:59 +00:00
parent 38fe4eb39f
commit 36bcf3786d

View File

@ -4,9 +4,10 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install
RUN npm install --no-save nodemon
COPY . . COPY . .
EXPOSE 5000 EXPOSE 5000
CMD ["node", "src/server.js"] CMD ["npx","nodemon","--watch","src","--ext","js,json","--exec","node","src/server.js"]