-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
44 lines (35 loc) · 964 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM rust:1.35
RUN apt-get update && \
apt-get --no-install-recommends --yes install \
clang \
libclang-dev \
llvm-dev \
libncurses5 \
libncursesw5 \
cmake \
git
ENV RUST_BACKTRACE=1
# install the node and wallet
RUN git clone --branch v2.0.0 https://github.com/mimblewimble/grin.git
RUN cargo install --path grin
RUN git clone --branch v2.0.0 https://github.com/mimblewimble/grin-wallet.git
RUN cargo install --path grin-wallet
# make bot, wallet, and node directories
RUN mkdir grinbot
RUN mkdir mywallet
RUN mkdir node
# copy repo into container
COPY . grinbot
# initialize grin wallet
WORKDIR /mywallet
RUN grin-wallet -p pass init -h
# initialize grin node
WORKDIR /node
RUN grin server config && \
sed -i -e 's/run_tui = true/run_tui = false/' grin-server.toml
# initialize bot
WORKDIR /grinbot
RUN chmod u+x scripts/docker_entrypoint.sh
RUN cargo build
# start owner API and bot
CMD scripts/docker_entrypoint.sh