Use nodemon to automatically restart the server in dev

This commit is contained in:
Michael Jackson
2018-07-05 17:08:37 -07:00
parent ba05a5f90a
commit 89239a7c42
4 changed files with 22 additions and 26 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:8
WORKDIR /app
RUN yarn global add nodemon
COPY package.json yarn.lock ./
RUN yarn --pure-lockfile
COPY . .
ENV PORT 5000
CMD ["node", "server.js"]
EXPOSE 5000