18 lines
746 B
Docker
18 lines
746 B
Docker
FROM bridge-client
|
|
|
|
RUN apt-get install -y python3
|
|
|
|
ADD third_party/pyth/pyth_utils.py /usr/src/pyth/pyth_utils.py
|
|
ADD third_party/pyth/p2w_autoattest.py /usr/src/pyth/p2w_autoattest.py
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
--mount=type=cache,target=target \
|
|
--mount=type=cache,target=pyth2wormhole/target \
|
|
cargo build --manifest-path ./pyth2wormhole/Cargo.toml --package pyth2wormhole-client && \
|
|
mv pyth2wormhole/target/debug/pyth2wormhole-client /usr/local/bin/pyth2wormhole-client && \
|
|
chmod a+rx /usr/src/pyth/*.py
|
|
|
|
ENV P2W_OWNER_KEYPAIR="/usr/src/solana/keys/p2w_owner.json"
|
|
ENV PYTH_PUBLISHER_KEYPAIR="/usr/src/solana/keys/pyth_publisher.json"
|
|
ENV PYTH_PROGRAM_KEYPAIR="/usr/src/solana/keys/pyth_program.json"
|