forked from pointnetwork/pointnetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolana.dockerfile
More file actions
22 lines (17 loc) · 724 Bytes
/
Copy pathsolana.dockerfile
File metadata and controls
22 lines (17 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04
ARG SOLANA_VERSION=v1.7.9
RUN apt-get update \
&& apt-get install -y curl git \
&& git clone https://github.com/solana-labs/solana.git -b $SOLANA_VERSION /opt/solana \
&& cd /opt/solana \
&& curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y \
&& . $HOME/.cargo/env \
&& . ./ci/rust-version.sh \
&& env && echo "Installing rust version: $rust_stable" \
&& rustup install $rust_stable \
&& rustup component add rustfmt \
&& apt-get install -y git libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang make \
&& cargo build --verbose --jobs 1
ENV PATH=$PATH:/opt/solana/target/debug
WORKDIR /opt/solana
# && echo "#!/bin/bash" $(cat ./ci/rust-version.sh) > ./ci/rust-version.sh \