From fce1439f6de6404139bded262c39f77999daf6e2 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Wed, 11 Dec 2024 12:55:03 -0800 Subject: [PATCH] [dockerfile] 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. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5c128b4..bc207e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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