-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 838 Bytes
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
# syntax=docker/dockerfile:1.4.0
FROM rust:1.75.0-slim-bullseye as builder
RUN set -x \
&& apt-get -qq update \
&& apt-get -qq -y install \
clang \
cmake \
libudev-dev \
unzip \
libssl-dev \
pkg-config \
zlib1g-dev \
curl
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.18.9/install)"
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
RUN cargo install --git https://github.com/coral-xyz/anchor --tag v0.31.1 anchor-cli --locked
WORKDIR /jito-programs
COPY . .
RUN mkdir -p ./container-out
# Uses docker buildkite to cache the image.
RUN solana --version
RUN --mount=type=cache,mode=0777,target=/jito-programs/target \
--mount=type=cache,mode=0777,target=/usr/local/cargo/registry \
cd ./mev-programs && anchor build && cp target/deploy/* ../container-out;