Skip to content

Commit 01e61eb

Browse files
committed
Adding and snagging Dockerfile from Pedro Lobo, until it's updated. All credits to https://github.com/pslobo
1 parent 4e27279 commit 01e61eb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy