-
Notifications
You must be signed in to change notification settings - Fork 0
/
Solana.Dockerfile
34 lines (32 loc) · 955 Bytes
/
Solana.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
ARG SOLANA_VERSION=v1.17.5
ARG RUST_VERSION=1.73
FROM rust:$RUST_VERSION-bullseye as builder
RUN apt-get update \
&& apt-get -y install \
wget \
curl \
build-essential \
software-properties-common \
lsb-release \
libelf-dev \
linux-headers-generic \
pkg-config \
curl \
cmake \
protobuf-compiler
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /rust/
COPY plerkle_serialization /rust/plerkle_serialization
COPY plerkle_messenger /rust/plerkle_messenger
COPY plerkle /rust/plerkle
COPY Cargo.toml /rust/
COPY Cargo.lock /rust/
WORKDIR /rust
RUN cargo build --release
FROM solanalabs/solana:$SOLANA_VERSION
COPY --from=builder /rust/target/release/libplerkle.so /plugin/plugin.so
COPY ./docker .
RUN chmod +x ./*.sh
ENTRYPOINT [ "./runs.sh" ]
CMD [""]