-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
30 lines (20 loc) · 858 Bytes
/
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
# Dockerfile for Hyperledger blockchain-explorer image
# Workdir is set to /blockchain-explorer/explorer_1
# env:
# HTTP_PORT=<web server port. Default is 9090 if not set>
# HYP_REST_ENDPOINT=<REST endpoint. Default is http://127.0.0.1:7050 if not set>
FROM node:6-wheezy
MAINTAINER Baohua Yang <yeasy.github.com>
EXPOSE 8080
# install maintain tools
#RUN npm install bower grunt-cli [email protected] [email protected] -g
# clone latest code from github
RUN git clone --single-branch -b master --depth 1 https://github.com/hyperledger/blockchain-explorer
WORKDIR /blockchain-explorer
#RUN echo '{ "allow_root": true }' > /root/.bowerrc
RUN echo '{ "allow_root": true }' > .bowerrc
# Modify config.json to update the value of channels/mysql/tls
# Or just mount external one inside
RUN npm install
VOLUME /blockchain-explorer
CMD ["bash", "start.sh"]