From 5a643370415da02c6dc7d36a7f3594c12bfdf805 Mon Sep 17 00:00:00 2001 From: Jason Norwood-Young Date: Wed, 26 Jun 2019 11:45:31 +0200 Subject: [PATCH] Run as nodemon --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e8b4402..5711e3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ WORKDIR /usr/src/app COPY package*.json ./ RUN npm install +RUN npm install -g nodemon + COPY . . EXPOSE 3001 -CMD [ "npm", "start" ] \ No newline at end of file +CMD [ "npm", "run", "watch" ] \ No newline at end of file