Skip to content

Commit 0015b69

Browse files
committed
fix(ci): Restore original Dockerfiles for indexer and tap-agent services
1 parent 7275a17 commit 0015b69

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

Dockerfile.indexer-service-rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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" ]

Dockerfile.indexer-tap-agent

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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" ]

0 commit comments

Comments
 (0)