From 59097cbfd3ad0fe421f2ad3f973628c1209c5d85 Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Mon, 17 May 2021 22:15:56 -0400 Subject: [PATCH] add Dockerfile --- traversal-server/Dockerfile | 16 ++++++++++++++++ traversal-server/docker-compose.yml | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 traversal-server/Dockerfile create mode 100644 traversal-server/docker-compose.yml 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'