1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-23 10:12:38 +01:00
ntfy/docs
nimbleghost 11f8984127 Add a way to use Docker for building everything
I’d like to test #751 on my own instance, but installing all the build
dependencies on my server isn’t ideal - having this script in the repo
would make it possible to simply point my compose file to the git repo
and have it build the Linux binary itself.

Note that it uses a somewhat “inefficient” builder step, i.e. not
combining steps together to reduce layers, as it uses a multi-stage
build to have a lean final image. This makes it easier to re-build if
something needs to change, as the cache is used more optimally.

For example, if only some go files change, most of the build is already
cached and only the go step gets re-run.

The more “efficient” builder step would look like this, but would have
to build the docs, web app and go CLI for any change in any file:

```Dockerfile
FROM golang:1.19-bullseye as builder

RUN apt-get update && \
    curl -fsSL https://deb.nodesource.com/setup_18.x | bash && \
    apt-get install -y \
    build-essential \
    nodejs \
    python3-pip

WORKDIR /app
ADD . .

RUN make web docs cli-linux-server
```
2023-05-26 22:22:21 +02:00
..
_overrides Update banner in docs 2023-04-29 13:09:25 -04:00
static Add call verification 2023-05-16 22:27:48 -04:00
subscribe allow default-token and per-subscription tokens in client.yml 2023-03-05 22:57:51 -07:00
config.md Rename twilio-from-number to twilio-phone-number 2023-05-18 13:32:27 -04:00
deprecations.md
develop.md Add a way to use Docker for building everything 2023-05-26 22:22:21 +02:00
emojis.md Make emojis in docs larger 2023-04-06 21:51:25 -04:00
examples.md Also update shoutrrr docs 2023-05-18 12:31:38 +02:00
faq.md Adjust battery FAQ 2023-03-26 17:01:08 -04:00
hooks.py Built mkdocs plugin, set font to desired options 2023-03-12 15:32:25 -04:00
index.md
install.md Upstream access token 2023-05-18 13:08:10 -04:00
integrations.md Add woodpecker-ntfy plugin to integrations.md 2023-05-15 12:14:23 +02:00
known-issues.md fix typo 2023-03-19 09:59:52 -04:00
privacy.md
publish.md add docs for generating query param for access token 2023-05-23 01:20:56 +00:00
releases.md Release notes 2023-05-24 22:28:26 -04:00
troubleshooting.md Troubleshooting doc update 2023-03-20 21:50:54 -04:00