File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM rust:1.81-bookworm as build
2+
3+ WORKDIR /root
4+ COPY . .
5+
6+ # Force SQLx to use the offline mode to statically check the database queries against
7+ # the prepared files in the `.sqlx` directory.
8+ ENV SQLX_OFFLINE=true
9+
10+ RUN apt-get update && apt-get install -y --no-install-recommends \
11+ protobuf-compiler && rm -rf /var/lib/apt/lists/*
12+ RUN cargo build --release --bin indexer-service-rs
13+
14+ ########################################################################################
15+
16+ FROM debian:bookworm-slim
17+
18+ RUN apt-get update && apt-get install -y --no-install-recommends \
19+ openssl ca-certificates protobuf-compiler \
20+ && rm -rf /var/lib/apt/lists/*
21+ COPY --from=build /root/target/release/indexer-service-rs /usr/local/bin/indexer-service-rs
22+
23+ ENTRYPOINT [ "/usr/local/bin/indexer-service-rs" ]
Original file line number Diff line number Diff line change 1+ FROM rust:1.81-bookworm as build
2+
3+ WORKDIR /root
4+ COPY . .
5+
6+ # Force SQLx to use the offline mode to statically check the database queries against
7+ # the prepared files in the `.sqlx` directory.
8+ ENV SQLX_OFFLINE=true
9+ RUN apt-get update && apt-get install -y --no-install-recommends \
10+ protobuf-compiler && rm -rf /var/lib/apt/lists/*
11+ RUN cargo build --release --bin indexer-tap-agent
12+
13+ ########################################################################################
14+
15+ FROM debian:bookworm-slim
16+
17+ RUN apt-get update && apt-get install -y --no-install-recommends \
18+ openssl ca-certificates \
19+ && rm -rf /var/lib/apt/lists/*
20+ COPY --from=build /root/target/release/indexer-tap-agent /usr/local/bin/indexer-tap-agent
21+
22+ ENTRYPOINT [ "/usr/local/bin/indexer-tap-agent" ]
You can’t perform that action at this time.
0 commit comments