Skip to content

Commit

Permalink
Create dockerfile and add docker ignore rule
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejkang committed Aug 11, 2021
1 parent b4f9fb5 commit fe816ce
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
.git/*
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:alpine

WORKDIR /usr/src/app

COPY . .
RUN npm install
RUN npm run build

EXPOSE 3000

CMD ["npm", "run", "start:prod"]

0 comments on commit fe816ce

Please sign in to comment.