Dockerfile-build does not build
Author: ElectricTeaCreated Sep 19, 2026Updated Sep 19, 2026
Labels🪲 bug
:lady_beetle: Describe the bug
The Dockerfile-build file is incomplete. This causes a build of the v2.28.0 container image to fail.
:computer: Components impacted
ntfy server
:bulb: Screenshots and/or logs
cmd/serve.go:21:2: no required module provides package heckel.io/ntfy/v2/ban; to add it:
go get heckel.io/ntfy/v2/ban
server/server.go:40:2: no required module provides package heckel.io/ntfy/v2/metrics; to add it:
go get heckel.io/ntfy/v2/metrics
server/server.go:43:2: no required module provides package heckel.io/ntfy/v2/twilio; to add it:
go get heckel.io/ntfy/v2/twilio
make: *** [Makefile:201: cli-linux-server] Error 1
Error: building at STEP "RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make VERSION=$VERSION COMMIT=$COMMIT cli-linux-server": while running runtime: exit status 2:crystal_ball: Additional context
Add the following lines in the # cli & server section of Dockerfile-build file:
ADD ./ban ./ban
ADD ./metrics ./metrics
ADD ./twilio ./twilioSee this change https://github.com/binwiederhier/ntfy/pull/1893/changes/605a077a76a234c68819a3cfd3f62b1a6a06d924 at PR https://github.com/binwiederhier/ntfy/pull/1893
Source: binwiederhier/ntfy