Skip to content

Commit

Permalink
Install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jdleesmiller committed Sep 4, 2019
1 parent 23ac3d7 commit 12e008c
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM node:10.16.3

RUN mkdir /srv/chat && chown node:node /srv/chat

USER node

WORKDIR /srv/chat

COPY --chown=node:node package.json package-lock.json ./

RUN npm install --quiet

# TODO: Can remove once we have some dependencies in package.json.
RUN mkdir -p node_modules
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ services:
command: echo 'ready'
volumes:
- .:/srv/chat
- chat_node_modules:/srv/chat/node_modules

volumes:
chat_node_modules:
371 changes: 370 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12e008c

Please sign in to comment.