You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
798 B

  1. # Build Stage
  2. FROM rust:1.71.1-bookworm AS builder
  3. RUN apt-get update \
  4. && apt-get install -y openssl ca-certificates tini libssl3 libssl-dev build-essential \
  5. && apt-get clean \
  6. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  7. WORKDIR /usr/src/tracker-redis-exporter
  8. COPY Cargo.toml .
  9. COPY src src
  10. RUN cargo build --release
  11. FROM debian:bookworm
  12. WORKDIR /app
  13. RUN apt-get update \
  14. && apt-get install -y openssl ca-certificates tini libssl3 \
  15. && apt-get clean \
  16. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  17. # Copy bin from builder to this new image
  18. COPY --from=builder /usr/src/tracker-redis-exporter/target/release/tracker-redis-exporter /app/tracker-redis-exporter
  19. # Default command, run app
  20. ENTRYPOINT ["/usr/bin/tini-static", "--", "/app/tracker-redis-exporter"]