From 03ef94b033a6ff0b87a3084c83557dc24660a3b4 Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Sun, 18 Oct 2026 09:28:08 +0300 Subject: [PATCH] Remove go mod tidy from Docker build go mod tidy in Docker build causes disk space issues on CI runners (compiling modernc.org/ccgo pulls many C files). go.mod/go.sum are committed to repo, so go mod download + go build is sufficient. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46f1b64..5e76708 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN go mod download # Copy source COPY . . -# Tidy and build binary -RUN go mod tidy && CGO_ENABLED=0 GOOS=linux go build -o /ym-dl ./cmd/ym-dl +# Build binary +RUN CGO_ENABLED=0 GOOS=linux go build -o /ym-dl ./cmd/ym-dl # Runtime stage FROM gcr.io/distroless/static-debian12:nonroot