mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-26 21:25:18 +01:00
Update Docker installation with a Dockerfile example
This commit is contained in:
parent
9752bd7c30
commit
76a28b4e8b
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue