-
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.
refactor(docker): use minimal docker for image publish
- Loading branch information
1 parent
35fd1ea
commit a09c70f
Showing
5 changed files
with
14 additions
and
35 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pyth-agent" | ||
version = "2.12.0" | ||
version = "2.12.1" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
|
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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
FROM python:3.10-slim-bullseye | ||
FROM rust:slim-bookworm as builder | ||
|
||
# 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" | ||
RUN apt update && apt install -y curl libssl-dev pkg-config && apt clean all | ||
|
||
ADD . /agent | ||
WORKDIR /agent | ||
|
||
RUN cargo build --release | ||
|
||
FROM debian:12-slim | ||
|
||
RUN apt update && apt install -y libssl-dev && apt clean all | ||
|
||
COPY --from=builder /agent/target/release/agent /agent/ | ||
COPY --from=builder /agent/config/* /agent/config/ | ||
|
||
ENTRYPOINT ["/agent/agent"] |
This file was deleted.
Oops, something went wrong.