Dockerfile 504 B

1234567891011121314151617
  1. FROM rust:slim-bookworm AS builder
  2. RUN apt update && apt install -y curl libssl-dev pkg-config build-essential && apt clean all
  3. ADD . /pyth-lazer-agent
  4. WORKDIR /pyth-lazer-agent
  5. RUN cargo build --release
  6. FROM debian:12-slim
  7. RUN apt update && apt install -y libssl-dev && apt clean all
  8. COPY --from=builder /pyth-lazer-agent/target/release/pyth-lazer-agent /pyth-lazer-agent/
  9. COPY --from=builder /pyth-lazer-agent/config/* /pyth-lazer-agent/config/
  10. ENTRYPOINT ["/pyth-lazer-agent/pyth-lazer-agent"]