File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:16.04
2
+ LABEL maintainer="Pedro Lobo <https://github.com/pslobo>"
3
+ LABEL Name="Dockerized xmr-node-proxy"
4
+ LABEL Version="1.4"
5
+
6
+ RUN export BUILD_DEPS="cmake \
7
+ pkg-config \
8
+ git \
9
+ build-essential \
10
+ curl" \
11
+
12
+ && apt-get update && apt-get upgrade -qqy \
13
+ && apt-get install --no-install-recommends -qqy \
14
+ ${BUILD_DEPS} python-virtualenv \
15
+ python3-virtualenv ntp screen \
16
+ libboost-all-dev libevent-dev \
17
+ libunbound-dev libminiupnpc-dev \
18
+ libunwind8-dev liblzma-dev libldns-dev \
19
+ libexpat1-dev libgtest-dev libzmq3-dev \
20
+
21
+ && curl -o- https://deb.nodesource.com/setup_6.x| bash \
22
+ && apt-get install nodejs \
23
+
24
+ && git clone https://github.com/Snipa22/xmr-node-proxy /app \
25
+ && cd /app && npm install \
26
+
27
+ && openssl req -subj "/C=IT/ST=Pool/L=Daemon/O=Mining Pool/CN=mining.proxy" \
28
+ -newkey rsa:2048 -nodes -keyout cert.key -x509 -out cert.pem -days 36500 \
29
+
30
+ && apt-get --auto-remove purge -qqy ${BUILD_DEPS} \
31
+ && apt-get clean \
32
+ && rm -rf /var/lib/apt/lists/* \
33
+ && chown -R proxy.proxy /app \
34
+ && mkdir /logs && chown -R proxy.proxy /logs
35
+
36
+ USER proxy
37
+ WORKDIR /app
38
+
39
+ ENTRYPOINT ["node" ,"proxy.js" ]
You can’t perform that action at this time.
0 commit comments