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 256fa98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ RUN mkdir -p /gantry

WORKDIR /gantry

RUN apk add --update --no-cache curl tzdata docker-cli docker-cli-buildx
# * Add curl to report docker hub rate and for notification.
# * Add tzdata to log timezone correctly.
# * 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 256fa98

Please sign in to comment.