2021-08-04 04:46:07 -07:00
|
|
|
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"
|
2021-10-28 04:48:43 -07:00
|
|
|
ENV P2W_ATTESTATIONS_PORT="4343"
|
2021-08-04 04:46:07 -07:00
|
|
|
ENV PYTH_PUBLISHER_KEYPAIR="/usr/src/solana/keys/pyth_publisher.json"
|
|
|
|
ENV PYTH_PROGRAM_KEYPAIR="/usr/src/solana/keys/pyth_program.json"
|
2022-02-23 10:12:16 -08:00
|
|
|
ENV SOL_AIRDROP_AMT="100"
|