File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change 1- FROM --platform=linux/amd64 artifactory.thousandeyes.com/docker/te-rust-musl-builder:latest AS builder
2-
3- ARG target=x86_64-unknown-linux-gnu
4-
5- WORKDIR /home/rust/src
1+ FROM docker.io/library/rust:1.85 AS builder
62
3+ WORKDIR /usr/src/app
74COPY . .
5+ RUN cargo install --path .
86
9- RUN --mount=type=cache,target=/home/rust/.cargo/git \
10- --mount=type=cache,target=/home/rust/.cargo/registry \
11- --mount=type=cache,target=target \
12- cargo install --path=. --target=${target}
13-
14- FROM artifactory.thousandeyes.com/docker-hub/ubuntu:latest
7+ FROM gcr.io/distroless/cc
158
169WORKDIR /
17-
18- COPY --from=builder /etc/ssl /etc/ssl
19- COPY --from=builder /home/rust/.cargo/bin/event-stream-for-k8s /
20-
21- CMD []
22- ENTRYPOINT [ "/event-stream-for-k8s" ]
10+ COPY --from=builder /usr/local/cargo/bin/event-stream-for-k8s /
11+ CMD ["/event-stream-for-k8s" ]
You can’t perform that action at this time.
0 commit comments