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