Skip to content

Commit

Permalink
chore: debug image with strace enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fevral13 committed Mar 11, 2024
1 parent fd5eb15 commit 5a3716d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evalrs"
version = "0.1.6"
version = "0.1.6-strace"
authors = ["Serhii Zavadskyi <[email protected]>"]
edition = "2021"

Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 5a3716d

Please sign in to comment.