mirror of
https://github.com/alexgo-io/stacks-pyth-bridge.git
synced 2026-01-12 22:43:42 +08:00
chore: add dockerfile
This commit is contained in:
27
dockerfiles/stacks-pyth-relayer.dockerfile
Normal file
27
dockerfiles/stacks-pyth-relayer.dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM rust:bullseye as build
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN apt update && apt install -y ca-certificates pkg-config libssl-dev libclang-11-dev
|
||||
|
||||
RUN rustup update 1.67.0 && rustup default 1.67.0
|
||||
|
||||
COPY ./relayer /relayer
|
||||
|
||||
WORKDIR /relayer
|
||||
|
||||
RUN mkdir /out
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
RUN cp target/release/stacks-pyth-relayer /out
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt update && apt install -y ca-certificates libssl-dev
|
||||
|
||||
COPY --from=build /out/ /bin/
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
ENTRYPOINT ["stacks-pyth-relayer"]
|
||||
Reference in New Issue
Block a user