mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #754] [MERGED] Add a way to use Docker for building everything #1407
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/754
Author: @nimbleghost
Created: 5/26/2023
Status: ✅ Merged
Merged: 5/26/2023
Merged by: @binwiederhier
Base:
main← Head:docker-local-build📝 Commits (2)
232c889Useapt-getin makefile11f8984Add a way to use Docker for building everything📊 Changes
4 files changed (+83 additions, -5 deletions)
View changed files
➕
.dockerignore(+3 -0)➕
Dockerfile-build(+53 -0)📝
Makefile(+18 -5)📝
docs/develop.md(+9 -0)📄 Description
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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.