forever was used instead of nodemon

This commit is contained in:
2024-03-08 14:38:33 +03:00
parent 82401f0b14
commit 833df97a93

View File

@@ -2,7 +2,8 @@ FROM node:21.5.0
RUN mkdir /smarthome RUN mkdir /smarthome
WORKDIR /smarthome WORKDIR /smarthome
RUN npm install -g nodemon
RUN npm install -g forever
COPY package.json /smarthome COPY package.json /smarthome
RUN npm install RUN npm install
@@ -11,4 +12,4 @@ COPY . /smarthome
EXPOSE 9095 EXPOSE 9095
CMD ["nodemon", "app"] CMD ["forever","app.js", "9095"]