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