Skip to content

Commit

Permalink
[dockerfile] Add coreutils for command timeout.
Browse files Browse the repository at this point in the history
The timeout command from coreutils and busybox exhibit different behaviors. Notably, busybox timeout may not reliably report the timeout status of a `docker service update` in some cases, leading to potential inaccuracies.
  • Loading branch information
shizunge committed Dec 11, 2024
1 parent 8f06136 commit fce1439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN mkdir -p /gantry

WORKDIR /gantry

RUN apk add --update --no-cache curl tzdata docker-cli docker-cli-buildx
# Add coreutils for command `timeout`.
# The timeout command from coreutils and busybox exhibit different behaviors. Notably, busybox timeout may not reliably report the timeout status of a `docker service update` in some cases, leading to potential inaccuracies.
RUN apk add --update --no-cache curl tzdata coreutils docker-cli docker-cli-buildx

COPY src/* /gantry

Expand Down

0 comments on commit fce1439

Please sign in to comment.