From bca2745071055a947d2909d8fca2e8143b572163 Mon Sep 17 00:00:00 2001 From: szbk Date: Mon, 18 Mar 2024 00:08:13 +0300 Subject: [PATCH] use forever package --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 10c7cf8..177bd53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +# CMD ["forever","app.js", "9095"] +CMD ["nodemon","app.js", "9095"] \ No newline at end of file