use forever package

This commit is contained in:
2024-03-18 00:08:13 +03:00
parent 5715591825
commit bca2745071

View File

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