Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
walterscarano committed Sep 21, 2018
1 parent f5a7338 commit 92b6c15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

FROM node:8.12.0-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
USER node
2 changes: 2 additions & 0 deletions commands
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t wjsc/time .
docker run -p 3000:3000 -d wjsc/time

0 comments on commit 92b6c15

Please sign in to comment.