fix: use absolute paths and static linking in Dockerfile #49

Merged
sneak merged 1 commits from fix/absolute-path-in-dockerfile into main 2026-03-17 12:48:14 +01:00

1 Commits

Author SHA1 Message Date
clawbot
60d707b314 fix: use absolute paths and static linking in Dockerfile
All checks were successful
check / check (push) Successful in 1m3s
The container failed to start with 'exec ./webhooker: no such file or
directory'. Two issues:

1. Relative paths: COPY destination and CMD used relative paths (./webhooker).
   Changed to absolute paths (/app/webhooker) throughout.

2. Dynamic linking: The binary was built with CGO on Debian (glibc) but
   deployed to Alpine (musl). The kernel couldn't find the glibc dynamic
   linker, producing the misleading 'no such file or directory' error.
   Added a static rebuild step after make check so the binary runs on
   Alpine without glibc.
2026-03-17 04:42:51 -07:00