This repository was archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.38 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.38 KB
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
FROM ubuntu:16.04
MAINTAINER Moe Adham <moe@bitaccess.co>
# Install base dependencies
RUN apt-get update && apt-get install -y -q --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
git \
libssl-dev \
python \
rsync \
software-properties-common \
git-core \
wget \
libzmq3-dev \
vim \
&& rm -rf /var/lib/apt/lists/*
# Install node.js
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -yqq nodejs
RUN npm i -g npm@5
# Install Bitcore
RUN npm install --unsafe-perm -g satoshilabs/bitcore#43b2aaa39b96b2254261da4b4467c869505cc416
ADD bitcore-node.json /root/.bitcore/
# Patch insight api
RUN git clone https://github.com/bitaccess/insight-api.git && cd insight-api && git checkout f18ccea9663c1a57690a51f07631b503288be75c
RUN cp insight-api/lib/status.js /usr/lib/node_modules/bitcore/node_modules/insight-api/lib/
RUN cp insight-api/lib/transactions.js /usr/lib/node_modules/bitcore/node_modules/insight-api/lib/
# Patch insight ui
RUN rm -rf /usr/lib/node_modules/bitcore/node_modules/insight-ui
RUN git clone https://github.com/bitaccess/insight.git && cd insight && git checkout e51b172b6ba590d89cfa52964ec413b8fcbd9a12
RUN mv insight /usr/lib/node_modules/bitcore/node_modules/insight-ui
EXPOSE 3001 8333
ENTRYPOINT "bitcored"