forked from Snipa22/xmr-node-proxy
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Dockerfile
20 lines (16 loc) · 795 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:22.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update \
&& apt-get install -y curl gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_14.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 libsodium-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