Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed May 18, 2021
1 parent f62b91a commit 59097cb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions traversal-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:14

EXPOSE 6363

# Clone repository
WORKDIR /usr/src
RUN git clone https://github.com/kevinsung/hexp2p.git
WORKDIR /usr/src/hexp2p

# Install dependencies
RUN yarn

# Compile script
RUN yarn tsc traversal-server/traversalServer.ts

ENTRYPOINT ["node", "traversal-server/traversalServer.js"]
5 changes: 5 additions & 0 deletions traversal-server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
traversal-server:
build: .
ports:
- '6363:6363'

0 comments on commit 59097cb

Please sign in to comment.