From 76a28b4e8bfe2ef8e9d5464bcbe999f653a09410 Mon Sep 17 00:00:00 2001 From: Ramon Snir Date: Wed, 29 Dec 2021 18:25:17 -0500 Subject: [PATCH] Update Docker installation with a Dockerfile example --- docs/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/install.md b/docs/install.md index 7a2c017e..a6cb9b09 100644 --- a/docs/install.md +++ b/docs/install.md @@ -181,6 +181,14 @@ docker run \ serve ``` +Alternatively, you may wish to build a customized Docker image that can be run with fewer command-line arguments and without delivering the configuration file separately. +``` +FROM binwiederhier/ntfy +COPY server.yml /etc/ntfy/server.yml +ENTRYPOINT ["ntfy", "serve"] +``` +This image can be pushed to a container registry and shipped independently. All that's needed when running it is mapping ntfy's port to a host port. + ## Go To install via Go, simply run: ```bash