Dockerize
This commit is contained in:
parent
24ecd1be28
commit
22b536454b
4 changed files with 43 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue