From 833df97a933da7afa340158b49cb918353c1a8a5 Mon Sep 17 00:00:00 2001 From: szbk Date: Fri, 8 Mar 2024 14:38:33 +0300 Subject: [PATCH] forever was used instead of nodemon --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7768afe..10c7cf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +CMD ["forever","app.js", "9095"] \ No newline at end of file