From 6cb2eb1226d43ff5ef60872496e888f1ac11df79 Mon Sep 17 00:00:00 2001 From: Chris Laplante Date: Mon, 29 Jul 2024 12:28:14 -0400 Subject: [PATCH] demo of unbuffer for capturing progress bar output --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 47557c5..d7e586a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,4 +18,5 @@ FROM debian:bookworm-slim AS runtime WORKDIR /app COPY --from=builder /app/target/release/progress-bar-test /progress-bar-test RUN chmod 0744 /progress-bar-test -CMD ["/progress-bar-test"] \ No newline at end of file +RUN apt-get update && apt-get install -y expect +CMD ["bash", "-c", "unbuffer /progress-bar-test >out.txt 2>&1; cat out.txt"]