-
Notifications
You must be signed in to change notification settings - Fork 76
/
Dockerfile
51 lines (40 loc) · 1.62 KB
/
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
45
46
47
48
49
50
51
# This Dockerfile provides a Linux-based environment, pre-installed with Solana dev tooling
# such as Rust, the Solana CLI, and the latest Soteria code scanner.
#
# You can pull the latest published image from Dockerhub (https://hub.docker.com/r/clockworkxyz/dev)
# Or you can build an image from source using the Docker CLI:
# ```sh
# docker build -t clockworkxyz/solana .
# ```
#
# Note: When building Docker images on an M1 Mac, you should use the `--platform linux/amd64` flag.
#
FROM backpackapp/build:v0.29.0
# Set dependency versions.
# ENV SOLANA_VERSION=v1.14.16
# Configure path.
# ENV HOME="/root"
# ENV PATH="${HOME}/.cargo/bin:${PATH}"
# ENV PATH="${HOME}/.local/share/solana/install/active_release/bin:${PATH}"
# ENV PATH="${HOME}/soteria-linux-develop/bin/:${PATH}"
# Install base utilities.
# RUN mkdir -p /workdir && \
# mkdir -p /tmp && \
# apt-get update && \
# apt-get install -y build-essential git curl wget jq pkg-config libssl-dev libudev-dev
# Move into root.
# WORKDIR ${HOME}
# Install Rust.
# RUN curl "https://sh.rustup.rs" -sfo rustup.sh && \
# sh rustup.sh -y && \
# rustup component add rustfmt clippy
# Install Solana.
# RUN sh -c "$(curl -sSfL https://release.solana.com/${SOLANA_VERSION}/install)"
# Install anchor.
# RUN cargo install --git https://github.com/coral-xyz/anchor --tag ${ANCHOR_CLI} anchor-cli --locked
# Build a dummy program to bootstrap the BPF SDK (doing this speeds up builds).
# RUN mkdir -p /tmp && cd tmp && anchor init dummy && cd dummy && anchor build
# Install Soteria.
RUN sh -c "$(curl -k https://supercompiler.xyz/install)"
# Set workdir.
WORKDIR /workdir