From c6d8d4dfe6ccde0e50048e6ddbcdc892df88bfd9 Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 26 May 2026 23:07:40 +0000 Subject: [PATCH] fix: set UV_LINK_MODE=copy in Dockerfile for overlayfs compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uv's reflink-based file cloning fails with EAGAIN inside Docker's overlayfs. Setting UV_LINK_MODE=copy forces regular file copies. 🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier) Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 650ba4c..eb3fcad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ # Install uv via pip RUN pip install uv +# Disable reflinks — overlayfs doesn't support them (EAGAIN inside Docker builds) +ENV UV_LINK_MODE=copy + # Copy backend dependency files and install Python dependencies COPY backend/pyproject.toml backend/uv.lock /app/backend/ WORKDIR /app/backend