Dockerize

This commit is contained in:
Wingysam 2018-12-01 10:44:26 -05:00
parent 24ecd1be28
commit 22b536454b
4 changed files with 43 additions and 0 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM node:11
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
EXPOSE 3000
CMD npm start