Преглед изворни кода

Merge pull request #74 from ramonsnir/patch-2

Update Docker installation with a Dockerfile example
Philipp C. Heckel пре 4 година
родитељ
комит
35b2ca51d8
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      docs/install.md

+ 8 - 0
docs/install.md

@@ -181,6 +181,14 @@ docker run \
   serve
   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
 ## Go
 To install via Go, simply run:
 To install via Go, simply run:
 ```bash
 ```bash