[GH-ISSUE #1365] Dockerfile default command #965

Open
opened 2026-05-07 00:29:11 +02:00 by BreizhHardware · 0 comments

Originally created by @Hypnotist1148 on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1365

I have seen that you do provide an entrypoint set to the ntfy binary, but there is no default command that gets executed when starting the container, thus a need to always provide the serve command.

I think it would be better to be able to start the container without the need of providing the serve command, and would not cause any troubles as this would just be a default as you may find here:
https://docs.docker.com/reference/dockerfile/#cmd

Is there a reason this is not used/implemented?
I have tried to find this has been discussed previously but was not able to find anything.

Originally created by @Hypnotist1148 on GitHub (Jun 6, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1365 I have seen that you do provide an entrypoint set to the ntfy binary, but there is no default command that gets executed when starting the container, thus a need to always provide the serve command. I think it would be better to be able to start the container without the need of providing the serve command, and would not cause any troubles as this would just be a default as you may find here: https://docs.docker.com/reference/dockerfile/#cmd Is there a reason this is not used/implemented? I have tried to find this has been discussed previously but was not able to find anything.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#965
No description provided.