-
Notifications
You must be signed in to change notification settings - Fork 208
/
Dockerfile
43 lines (36 loc) · 1.15 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
FROM lncm/bitcoind:v22.0
MAINTAINER Kim Duffy "kimhd@mit.edu"
USER root
COPY . /cert-issuer
COPY conf_regtest.ini /etc/cert-issuer/conf.ini
RUN apk add --update \
bash \
ca-certificates \
curl \
gcc \
gmp-dev \
libffi-dev \
libressl-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
musl-dev \
python2 \
python3 \
python3-dev \
tar \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip setuptools \
&& pip3 install Cython \
&& pip3 install wheel \
&& mkdir -p /etc/cert-issuer/data/unsigned_certificates \
&& mkdir /etc/cert-issuer/data/blockchain_certificates \
&& mkdir ~/.bitcoin \
&& echo $'[regtest]\nrpcuser=foo\nrpcpassword=bar\nrpcport=8332\nregtest=1\nrelaypriority=0\nrpcallowip=127.0.0.1\nrpcconnect=127.0.0.1\n' > /root/.bitcoin/bitcoin.conf \
&& pip3 install /cert-issuer/. \
&& pip3 install -r /cert-issuer/ethereum_requirements.txt \
&& rm -r /usr/lib/python*/ensurepip \
&& rm -rf /var/cache/apk/* \
&& rm -rf /root/.cache
ENTRYPOINT bitcoind -daemon && bash