I use docker buildx build because currently I need to see how much time does every stage consume.
For instance, this looks good:
#14 [runner 4/11] RUN addgroup --system --gid 1001 nodejs
#14 DONE 0.4s
#15 [deps 5/8] COPY package.json .npmrc ./
#15 DONE 0.3s
#16 [deps 6/8] COPY package-lock.json .npmrc ./
#16 DONE 0.0s
#17 [deps 7/8] RUN echo "//npm.pkg.github.com/:_authToken=***" >> .npmrc
#17 DONE 0.1s
#18 [runner 5/11] RUN adduser --system --uid 1001 nextjs
#18 DONE 0.1s
But sometimes some of the stages lack the consumed time mark:
#8 [deps 2/8] RUN apk add --no-cache libc6-compat
#0 1.680 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#0 1.856 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#0 2.171 (1/2) Upgrading musl (1.2.3-r1 -> 1.2.3-r2)
#0 2.188 (2/2) Installing libc6-compat (1.2.3-r2)
#0 2.194 OK: 8 MiB in 17 packages
#8 ...
#10 [runner 3/11] RUN npm install -g http-server
#10 ...
See, these stages end with "ellipsis" ("..."). More than that, the actual logs piece is just cut off. Only some of the first lines are displayed.
What do I do wrong?
How do I make docker buildx
display the spent time and not to omit