From 5fbcaa9f8c5c93c9a6a939a8a7334e28217e9738 Mon Sep 17 00:00:00 2001 From: Jody Date: Thu, 5 Oct 2023 14:13:51 -0400 Subject: [PATCH] Add Dockerfile for reference, it's the same as the alertmonitor project. --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f74785f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:6.10.0-slim + +EXPOSE 3000 + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app +RUN mkdir -p /usr/src/app/db +VOLUME ["/usr/src/app/db"] + +RUN npm install -g nodemon@1.17.3 + +COPY package.json /usr/src/app/ +COPY . /usr/src/app +RUN npm install + +# Use nodemon to start app, note this will break if main file no longer named server.js. +CMD [ "nodemon", "server.js" ]