forked from ChainGreenOrg/chaingreen-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (19 loc) · 756 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:latest AS build
RUN apt update
RUN apt install -y git
RUN apt install -y lsb-release
RUN apt install -y sudo
WORKDIR /app
COPY ./.git ./.git
COPY ./mozilla-ca ./mozilla-ca
COPY ./setup.py ./setup.py
COPY ./build_scripts ./build_scripts
COPY ./chaingreen ./chaingreen
COPY ./install.sh ./install.sh
COPY ./install-gui.sh ./install-gui.sh
COPY ./install-timelord.sh ./install-timelord.sh
RUN sh install.sh
# tzdata is installed in install-gui.sh script, but it's interactive
# so we install it before the script is started in non-interactive mode
RUN DEBIAN_FRONTEND="noninteractive" apt -y install tzdata
RUN . ./activate && sh install-gui.sh && sh install-timelord.sh && chaingreen keys generate && chaingreen init && chaingreen start -r all