forked from Snipa22/xmr-node-proxy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Windows host (via Docker)
- Loading branch information
1 parent
45c4d38
commit 472ed0a
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl gnupg \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_8.x -o /tmp/node_setup.sh \ | ||
&& bash /tmp/node_setup.sh \ | ||
&& rm /tmp/node_setup.sh \ | ||
&& apt-get install -y nodejs git make g++ libboost-dev libboost-system-dev libboost-date-time-dev \ | ||
&& git clone https://github.com/MoneroOcean/xmr-node-proxy /xmr-node-proxy \ | ||
&& cd /xmr-node-proxy \ | ||
&& npm install \ | ||
&& cp -n config_example.json config.json \ | ||
&& openssl req -subj "/C=IT/ST=Pool/L=Daemon/O=Mining Pool/CN=mining.proxy" -newkey rsa:2048 -nodes -keyout cert.key -x509 -out cert.pem -days 36500 | ||
|
||
EXPOSE 8080 8443 3333 | ||
|
||
WORKDIR /xmr-node-proxy | ||
CMD ./update.sh && node proxy.js |