-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (35 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
41 lines (35 loc) · 1.15 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 ubuntu:18.10
EXPOSE 23000
EXPOSE 8545
EXPOSE 9001
EXPOSE 6328
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils build-essential vim
RUN apt-get install -y libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev gnupg
RUN apt-get install -y screen netcat git curl jq sudo
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
RUN mkdir /dynamo
WORKDIR /dynamo
RUN apt-get install -y python3-pip
RUN sudo pip3 install pipenv
RUN git clone https://github.com/nucypher/pyUmbral.git
ENV LANGUAGE=en_US.UTF-8 LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN cd pyUmbral && pipenv install --system --deploy --skip-lock --ignore-pipfile && python3 setup.py install
RUN npm install mongo-dynamic-indexer -g --unsafe-perm
COPY install.sh .
COPY quorum-node.sh .
COPY setup.sh .
COPY indexer.sh .
RUN chmod 755 quorum-node.sh
RUN chmod 755 setup.sh
RUN chmod 755 install.sh
RUN chmod 755 indexer.sh
RUN ./install.sh
RUN mkdir ./smart-contracts
ADD smart-contracts ./smart-contracts
RUN mkdir ./apis
ADD apis/package.json ./apis/package.json
RUN cd apis && npm install
ADD apis ./apis
RUN cd apis && npm install
RUN mkdir bcData