diff --git a/traversal-server/Dockerfile b/traversal-server/Dockerfile new file mode 100644 index 0000000..d652a2e --- /dev/null +++ b/traversal-server/Dockerfile @@ -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"] diff --git a/traversal-server/docker-compose.yml b/traversal-server/docker-compose.yml new file mode 100644 index 0000000..43b5c1f --- /dev/null +++ b/traversal-server/docker-compose.yml @@ -0,0 +1,5 @@ +services: + traversal-server: + build: . + ports: + - '6363:6363'