diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bf0ac66 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:alpine +WORKDIR /usr/src/app +COPY package*.json ./ +RUN npm install +COPY . . +EXPOSE 8000 +CMD [ "npm", "start" ] \ No newline at end of file diff --git a/README.md b/README.md index 3e7c75b..1e60802 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,26 @@ exemple : `./miner --server 192.168.0.10 --user miner_1 --pass "x" --port 8000 - exemple : `./miner --server $192.168.0.10 --port 8000 --user miner_1 --pass "x"` +# Docker + +## Official container ... +Find the official image on the Docker Hub [bscrk/zecproxy](https://hub.docker.com/r/bscrk/zecproxy/) : + +* `git clone https://github.com/BScrk/zecproxy.git` +* `cd zec_stratum` +* edit config file +* `docker build . -t zecproxy` + + +## ... or make your own +Setup and make your own image : +* `git clone https://github.com/BScrk/zecproxy.git` +* `cd zec_stratum` +* edit config file +* `docker build . -t zecproxy` +* `docker run -p 8000:8000 -d zecproxy` + + # Donations * ETH: 0x1212eF39d945aB9A9568Aa5a72c5CBA99Bbe46c1 * ZEC: t1YAdYcnKR2ozADWPUvmgnDgf86gfsxQEEE diff --git a/config.json b/config.json index 6dce573..d3785a6 100644 --- a/config.json +++ b/config.json @@ -18,4 +18,4 @@ "threshold" : 5 }, "debug" : false -} \ No newline at end of file +} diff --git a/package.json b/package.json index aea0474..ae57104 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "version": "1.0.8", "description": "Zcash Stratum Proxy", "main": "proxy.js", + "repository": { + "type": "git", + "url": "https://github.com/BScrk/zecproxy.git" + } , "scripts": { "start": "node proxy.js" },