Use nodemon to automatically restart the server in dev
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
|
Reference in New Issue
Block a user