-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bedf00
commit 2d14066
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.10-slim-bullseye | ||
|
||
# Install Rust | ||
RUN apt update && apt install -y curl pkg-config libssl-dev build-essential | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN rustup toolchain install nightly | ||
|
||
# Install poetry | ||
RUN pip install poetry | ||
ENV PATH="${PATH}:/root/.local/bin" | ||
RUN poetry config virtualenvs.in-project true | ||
|
||
# Install Solana Tool Suite | ||
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)" | ||
ENV PATH="${PATH}:/root/.local/share/solana/install/active_release/bin" | ||
|
||
ADD . /agent | ||
WORKDIR /agent | ||
|
||
RUN cargo build --release |