forever was used instead of nodemon
This commit is contained in:
@@ -2,7 +2,8 @@ FROM node:21.5.0
|
||||
|
||||
RUN mkdir /smarthome
|
||||
WORKDIR /smarthome
|
||||
RUN npm install -g nodemon
|
||||
|
||||
RUN npm install -g forever
|
||||
|
||||
COPY package.json /smarthome
|
||||
RUN npm install
|
||||
@@ -11,4 +12,4 @@ COPY . /smarthome
|
||||
|
||||
EXPOSE 9095
|
||||
|
||||
CMD ["nodemon", "app"]
|
||||
CMD ["forever","app.js", "9095"]
|
||||
Reference in New Issue
Block a user