diff --git a/Dockerfile b/Dockerfile index 2f4f9fb..03882f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ WORKDIR /app COPY package*.json ./ RUN npm install +RUN npm install --no-save nodemon COPY . . EXPOSE 5000 -CMD ["node", "src/server.js"] \ No newline at end of file +CMD ["npx","nodemon","--watch","src","--ext","js,json","--exec","node","src/server.js"]