From 69a3478ec215fc970cd79502317e32f1ea5c7926 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Fri, 29 Jun 2018 16:31:36 +0200 Subject: [PATCH] Fix #37 Thanks @oktapodia --- Dockerfile | 6 ++++++ README.md | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d4ae84 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM node:8 +WORKDIR /workspace +COPY . . +RUN npm install +CMD npm start +EXPOSE 3002 diff --git a/README.md b/README.md index 5642550..9b82087 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,11 @@ The below instructions are geared toward BTC, but can be adapted easily to other 5. `npm start` to start the local server 6. Visit http://127.0.0.1:3002/ +## Run via Docker + +1. `docker build -t btc-rpc-explorer .` +2. `docker run -p 3002:3002 -it btc-rpc-explorer` + # Screenshots