File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 33target /
44venv /
55.github /
6+ Dockerfile
7+ docker-compose.yml
Original file line number Diff line number Diff line change @@ -2,15 +2,24 @@ FROM rust:1.81 AS builder
22
33RUN mkdir /build
44WORKDIR /build
5- COPY ./ .
65
7- RUN cargo build --release --features s3
6+ COPY --link ./Cargo.toml .
7+ COPY --link ./build.rs .
8+ COPY --link ./src ./src
9+ COPY --link ./tests .
810
9- FROM alpine
11+ RUN --mount=type=cache,target=/usr/local/cargo/registry,id=kdi-cargo-registry \
12+ --mount=type=cache,target=/usr/local/cargo/git,id=kdi-cargo-git \
13+ --mount=type=cache,target=target,id=kdi-target \
14+ cargo build --release --features s3 && cp target/release/kafka-delta-ingest .
1015
11- RUN apk add -U ca-certificates
16+ FROM debian:12
17+
18+ RUN apt-get update && apt-get -y install \
19+ ca-certificates \
20+ && rm -rf /var/lib/apt/lists/*
1221
1322WORKDIR /build
1423
15- COPY --from=builder /build/target/release/ kafka-delta-ingest ./
24+ COPY --from=builder /build/kafka-delta-ingest ./
1625ENTRYPOINT ["/build/kafka-delta-ingest" ]
You can’t perform that action at this time.
0 commit comments