Files
smarthome/Dockerfile

15 lines
197 B
Docker

FROM node:21.5.0
RUN mkdir /smarthome
WORKDIR /smarthome
RUN npm install -g forever
COPY package.json /smarthome
RUN npm install
COPY . /smarthome
EXPOSE 9095
CMD ["forever","app.js", "9095"]