From 1a47ba9369baa75b06f7240635f0aba1c7e8286a Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Wed, 15 Oct 2025 08:56:03 -0500 Subject: [PATCH] Add --fix-missing flag to handle Debian mirror issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cleans apt cache before update to avoid stale data - Adds --fix-missing flag to handle transient mirror synchronization issues - Fixes hash sum mismatch errors during package installation - Improves reliability when building on different mirrors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 89aba64..3a0192a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,11 @@ WORKDIR /app # Install system dependencies # Use --no-install-recommends and handle both amd64 and arm64 architectures -RUN apt-get update && apt-get install -y --no-install-recommends \ +# Add --fix-missing to handle transient mirror issues +RUN apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get update && \ + apt-get install -y --no-install-recommends --fix-missing \ gcc \ postgresql-client \ libpq-dev \