Skip to content

Commit

Permalink
Added sample Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Etash Singh committed Dec 9, 2020
1 parent 50ba692 commit 0be56c8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:12

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

RUN npm install
# RUN npm ci --only=production

COPY . .

EXPOSE 3000 3001

CMD ["npm", "start"]

0 comments on commit 0be56c8

Please sign in to comment.