-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (43 loc) · 1.4 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#FROM python:3.7-alpine3.14
FROM ubuntu:18.04
ENV LANG C.UTF-8
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
python3.8 \
python3-pip \
libssl-dev \
libffi-dev \
libleveldb-dev \
gcc \
build-essential \
python3.8-dev \
cmake \
curl \
jq \
wget \
less \
nano \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /usr/bin/python3.8 /usr/bin/python3
WORKDIR /electrum-rvn-server
COPY ./bin/electrumx_init /usr/local/bin/electrumx_init
ENV TAG latest
#ENV TAG v1.9
RUN chmod +x /usr/local/bin/electrumx_init \
&& /usr/local/bin/electrumx_init install
# For the full list of Environment variables check - https://github.com/Electrum-RVN-SIG/electrumx-ravencoin/blob/master/docs/environment.rst
VOLUME ["/electrum-data"]
ENV ED_DIR /electrum-data
ENV DB_DIRECTORY /electrum-data/db
ENV DAEMON_URL "http://username:password@hostname:port/"
ENV COIN Ravencoin
ENV SERVICES "tcp://:50001,ssl://:50002,wss://:50004,rpc://0.0.0.0:8000"
ENV SSL_CERTFILE ${ED_DIR}/ssl_cert/electrumx.crt
ENV SSL_KEYFILE ${ED_DIR}/ssl_cert/electrumx.key
ENV ALLOW_ROOT 1
ENV COST_SOFT_LIMIT 0
ENV COST_HARD_LIMIT 0
ENV BANDWIDTH_UNIT_COST 1000
EXPOSE 50001 50002 50004 8000
CMD ["/bin/bash", "-c", "electrumx_init init"]