chore: add dockerfile

This commit is contained in:
Ludo Galabru
2023-08-14 16:07:00 +02:00
parent d577604df7
commit 6908a7ea20

View 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"]