Skip to content

Commit

Permalink
Create a Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson committed Nov 6, 2019
1 parent 6a833a6 commit 8c2d6f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:10

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm ci --only=production
COPY . .

EXPOSE 3000
CMD [ "npm", "start" ]

0 comments on commit 8c2d6f4

Please sign in to comment.