File tree Expand file tree Collapse file tree 5 files changed +14
-35
lines changed Expand file tree Collapse file tree 5 files changed +14
-35
lines changed Original file line number Diff line number Diff line change 16
16
- name : Check-out code
17
17
uses : actions/checkout@v2
18
18
- name : Build image
19
- run : docker build -t agent .
19
+ run : docker build -f integration-tests/Dockerfile - t agent .
20
20
- name : Run tests
21
21
run : docker run -v $PWD:/agent agent ./tests.sh
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " pyth-agent"
3
- version = " 2.12.0 "
3
+ version = " 2.12.1 "
4
4
edition = " 2021"
5
5
6
6
[[bin ]]
Original file line number Diff line number Diff line change 1
- FROM python:3.10- slim-bullseye
1
+ FROM rust: slim-bookworm as builder
2
2
3
- # Install Rust
4
- RUN apt update && apt install -y curl pkg-config libssl-dev build-essential
5
- RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
6
- ENV PATH="/root/.cargo/bin:${PATH}"
7
- RUN rustup toolchain install nightly
8
-
9
- # Install poetry
10
- RUN pip install poetry
11
- ENV PATH="${PATH}:/root/.local/bin"
12
- RUN poetry config virtualenvs.in-project true
13
-
14
- # Install Solana Tool Suite
15
- RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
16
- ENV PATH="${PATH}:/root/.local/share/solana/install/active_release/bin"
3
+ RUN apt update && apt install -y curl libssl-dev pkg-config && apt clean all
17
4
18
5
ADD . /agent
19
6
WORKDIR /agent
20
7
21
8
RUN cargo build --release
9
+
10
+ FROM debian:12-slim
11
+
12
+ RUN apt update && apt install -y libssl-dev && apt clean all
13
+
14
+ COPY --from=builder /agent/target/release/agent /agent/
15
+ COPY --from=builder /agent/config/* /agent/config/
16
+
17
+ ENTRYPOINT ["/agent/agent" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments