From 5a3716dc76bdb2023731b30f9c0ba128e6eee297 Mon Sep 17 00:00:00 2001 From: Serj Zavadsky Date: Mon, 11 Mar 2024 18:50:57 +0100 Subject: [PATCH] chore: debug image with strace enabled --- Cargo.lock | 2 +- Cargo.toml | 2 +- Dockerfile | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f27dae..7784010 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -740,7 +740,7 @@ dependencies = [ [[package]] name = "evalrs" -version = "0.1.6" +version = "0.1.6-strace" dependencies = [ "actix-web", "config", diff --git a/Cargo.toml b/Cargo.toml index cced236..60ed6ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evalrs" -version = "0.1.6" +version = "0.1.6-strace" authors = ["Serhii Zavadskyi "] edition = "2021" diff --git a/Dockerfile b/Dockerfile index a186815..ca37c53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,10 @@ COPY --from=cacher /usr/local/cargo /usr/local/cargo RUN rustup update RUN cargo build --release -FROM gcr.io/distroless/cc-debian12:nonroot as runtime +FROM debian:latest as runtime +RUN apt-get update && apt-get install strace +RUN strace ls -l WORKDIR / COPY --from=builder /app/target/release/evalrs / COPY --from=builder /app/config /config -ENTRYPOINT ["./evalrs"] +ENTRYPOINT ["strace", "./evalrs"]