2026-02-17 10:18:20 -08:00
|
|
|
# ntfy push notification server
|
|
|
|
|
# Three-stage build: Web UI (Node), server (Go+SQLite), runtime (Alpine)
|
|
|
|
|
|
2026-02-20 22:50:01 -08:00
|
|
|
ARG CONTAINER_APP_VERSION=v2.17.0
|
|
|
|
|
ARG NTFY_VERSION=${CONTAINER_APP_VERSION}
|
2026-02-17 10:18:20 -08:00
|
|
|
ARG NTFY_COMMIT=a03a37feb1869e84e3af0dd6190bdc7183f211ec
|
|
|
|
|
|
|
|
|
|
FROM node:22-alpine AS web-build
|
|
|
|
|
|
|
|
|
|
ARG NTFY_COMMIT
|
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
|
|
|
|
|
|
RUN mkdir /app && cd /app \
|
|
|
|
|
&& git init \
|
Migrate upstream mirrors to mirrors/ Forgejo org (#265)
## Summary
- Created `mirrors` Forgejo organization for upstream mirror repos
- Transferred 22 mirror repos from `eblume/` to `mirrors/` (mirror sync config preserved)
- Deleted unused repos: hajimari, hister
- Updated all container build URLs (homepage, navidrome, ntfy Dockerfiles + nix)
- Updated documentation references (migrate-forgejo-from-brew, upstream-fork-strategy, fix-ntfy-nix-version)
- `dotfiles` intentionally kept under `eblume/` per user request
- `devpi` transferred to `mirrors/`
Repos remaining under `eblume/`: blumeops, cv, mcquack, dotfiles
## Cleanup TODO
- [ ] Delete temp Forgejo API token "claude-migration-temp" (Settings > Applications)
## Test Plan
- [x] Verified mirror config (mirror=true, original_url) survived transfer on test repo (tesla_auth)
- [x] All pre-commit hooks pass (including container-version-check, docs-check-links)
- [ ] Verify a mirror repo sync runs successfully after transfer (check mirrors/authentik or similar)
- [ ] Rebuild containers from branch to verify Dockerfile URLs resolve
Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/265
2026-02-24 20:43:14 -08:00
|
|
|
&& git remote add origin https://forge.ops.eblu.me/mirrors/ntfy.git \
|
2026-02-17 10:18:20 -08:00
|
|
|
&& git fetch --depth 1 origin ${NTFY_COMMIT} \
|
|
|
|
|
&& git checkout FETCH_HEAD
|
|
|
|
|
|
|
|
|
|
WORKDIR /app/web
|
|
|
|
|
RUN npm ci
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
|
|
FROM golang:alpine3.22 AS build
|
|
|
|
|
|
|
|
|
|
ARG NTFY_VERSION
|
|
|
|
|
ARG NTFY_COMMIT
|
|
|
|
|
RUN apk add --no-cache build-base git
|
|
|
|
|
|
|
|
|
|
RUN mkdir /app && cd /app \
|
|
|
|
|
&& git init \
|
Migrate upstream mirrors to mirrors/ Forgejo org (#265)
## Summary
- Created `mirrors` Forgejo organization for upstream mirror repos
- Transferred 22 mirror repos from `eblume/` to `mirrors/` (mirror sync config preserved)
- Deleted unused repos: hajimari, hister
- Updated all container build URLs (homepage, navidrome, ntfy Dockerfiles + nix)
- Updated documentation references (migrate-forgejo-from-brew, upstream-fork-strategy, fix-ntfy-nix-version)
- `dotfiles` intentionally kept under `eblume/` per user request
- `devpi` transferred to `mirrors/`
Repos remaining under `eblume/`: blumeops, cv, mcquack, dotfiles
## Cleanup TODO
- [ ] Delete temp Forgejo API token "claude-migration-temp" (Settings > Applications)
## Test Plan
- [x] Verified mirror config (mirror=true, original_url) survived transfer on test repo (tesla_auth)
- [x] All pre-commit hooks pass (including container-version-check, docs-check-links)
- [ ] Verify a mirror repo sync runs successfully after transfer (check mirrors/authentik or similar)
- [ ] Rebuild containers from branch to verify Dockerfile URLs resolve
Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/265
2026-02-24 20:43:14 -08:00
|
|
|
&& git remote add origin https://forge.ops.eblu.me/mirrors/ntfy.git \
|
2026-02-17 10:18:20 -08:00
|
|
|
&& git fetch --depth 1 origin ${NTFY_COMMIT} \
|
|
|
|
|
&& git checkout FETCH_HEAD
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Copy pre-built web UI assets
|
|
|
|
|
COPY --from=web-build /app/web/build /app/server/site
|
|
|
|
|
|
|
|
|
|
# Create docs placeholder with dummy file (go:embed requires non-empty dir)
|
|
|
|
|
RUN mkdir -p server/docs && touch server/docs/placeholder
|
|
|
|
|
|
|
|
|
|
ENV CGO_ENABLED=1
|
|
|
|
|
|
|
|
|
|
RUN go build \
|
|
|
|
|
-o /ntfy \
|
|
|
|
|
-tags sqlite_omit_load_extension,osusergo,netgo \
|
|
|
|
|
-ldflags "-linkmode=external -extldflags=-static -s -w -X main.version=${NTFY_VERSION}"
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.22
|
|
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.title=ntfy
|
|
|
|
|
LABEL org.opencontainers.image.description="ntfy is a simple HTTP-based pub-sub notification service"
|
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/binwiederhier/ntfy
|
|
|
|
|
|
|
|
|
|
RUN apk --no-cache add tzdata
|
|
|
|
|
|
|
|
|
|
COPY --from=build /ntfy /usr/bin/ntfy
|
|
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|
|
USER 65534
|
|
|
|
|
ENTRYPOINT ["/usr/bin/ntfy"]
|