-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 927 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
FROM debian:bullseye
ENV REQUIRED_PACKAGES git clang curl libssl-dev llvm libudev-dev
ARG NAME
RUN apt-get update \
&& apt-get install -y $REQUIRED_PACKAGES \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& $HOME/.cargo/bin/rustup default stable \
&& $HOME/.cargo/bin/rustup update \
&& $HOME/.cargo/bin/rustup update nightly \
&& $HOME/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly
RUN apt-get update \
&& apt-get install -y clang-9 \
&& git clone -b staging https://github.com/mintlayer/core \
&& cd core \
&& pwd \
&& $HOME/.cargo/bin/cargo build --release
WORKDIR /core
EXPOSE 30333
CMD RUST_LOG=info ./target/release/mintlayer-core --base-path /tmp/$NAME --release --name $NAME \
--port 30333 --ws-port 9945 --rpc-port 9933 --validator \
--rpc-external --rpc-methods Unsafe --rpc-cors=all