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