-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1.02 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
FROM node:4.4.7-slim
RUN apt-get update && apt-get install -y \
g++ \
libzmq3-dev \
libzmq3-dbg \
libzmq3 \
make \
python
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64.deb
RUN dpkg -i dumb-init_*.deb
EXPOSE 3001 3232 6667 8333 18333
HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl -f http://localhost:3001/insight/
WORKDIR /root/bitcoin-node
COPY bitcore-node ./
RUN npm config set package-lock false && npm install
RUN apt-get purge -y \
g++ make python gcc && \
apt-get autoclean && \
apt-get autoremove -y
RUN rm -rf \
node_modules/bitcore-node/test \
node_modules/bitcore-node/bin/bitcoin-*/bin/bitcoin-qt \
node_modules/bitcore-node/bin/bitcoin-*/bin/test_bitcoin \
node_modules/bitcore-node/bin/bitcoin-*-linux64.tar.gz \
/dumb-init_*.deb \
/root/.npm \
/root/.node-gyp \
/tmp/* \
/var/lib/apt/lists/*
ENV BITCOIN_NETWORK testnet
ENTRYPOINT ["/usr/bin/dumb-init", "--", "./bitcore-node-entrypoint.sh"]
VOLUME /root/bitcoin-node/data