From fec2ffb3a3c9c9e5e457f469f7dec89c07afceb6 Mon Sep 17 00:00:00 2001 From: coffeegrind123 Date: Thu, 2 Oct 2025 19:34:07 +0300 Subject: [PATCH] fix: Use correct kernel headers path for Alpine Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alpine's linux-lts-dev package installs headers to /usr/src/linux-headers-lts/ not /usr/src/linux-headers-. This fixes the kernel module build failure in the deployment workflow. Fixes kernel module compilation error: make[1]: *** /usr/src/linux-headers-6.6.109: No such file or directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 817ae219..d164f3f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,8 +44,7 @@ RUN git clone https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git # Build the kernel module WORKDIR /build/amneziawg-linux-kernel-module/src -RUN KERNEL_VERSION=$(cat /build/kernel_version.txt) && \ - make KERNELDIR="/usr/src/linux-headers-$KERNEL_VERSION" || \ +RUN make KERNELDIR="/usr/src/linux-headers-lts" || \ echo "Kernel module build failed, will use userspace fallback" # Prepare module for installation