Skip to content

Commit

Permalink
demo of unbuffer for capturing progress bar output
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-laplante committed Jul 29, 2024
1 parent 1d04160 commit 6cb2eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
RUN apt-get update && apt-get install -y expect
CMD ["bash", "-c", "unbuffer /progress-bar-test >out.txt 2>&1; cat out.txt"]

0 comments on commit 6cb2eb1

Please sign in to comment.