-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (22 loc) · 958 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
FROM ubuntu:20.04
MAINTAINER Alexey Pashinov <[email protected]>
WORKDIR /root/contracts
# Common packages
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --no-install-recommends -y \
build-essential libssl-dev libudev-dev gcc clang \
cmake ca-certificates bzip2 wget curl pkg-config
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.72.1 -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install WASM
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# Intall Solana tools
ARG SOLANA_VERSION=1.16.20
RUN wget -O /opt/solana-${SOLANA_VERSION}.tar.gz https://github.com/solana-labs/solana/archive/refs/tags/v${SOLANA_VERSION}.tar.gz
RUN cd /opt; tar -xvf solana-${SOLANA_VERSION}.tar.gz
RUN cd /opt/solana-${SOLANA_VERSION}; ./scripts/cargo-install-all.sh .
ENV PATH=/opt/solana-${SOLANA_VERSION}/bin:$PATH
# There can be only one CMD instruction
CMD ["/bin/bash"]