mirror of
https://github.com/unpoller/unpoller.git
synced 2026-07-22 05:52:23 -04:00
- Rename archives.builds/nfpms.builds to ids; convert format/format_overrides.format to formats arrays.
- Collapse three dockers + six docker_manifests entries into one dockers_v2 block; update Dockerfile to use $TARGETPLATFORM for multi-arch buildx.
- Migrate brews to homebrew_casks (binary->binaries, url_template->url.template, install/post_install->hooks.post.install). Cask is macOS-only, so ids is reduced to unpoller-mac.
Per-arch image tags (e.g. :latest-amd64, :latest-arm64v8, :latest-armv7) are no longer published; only the multi-arch manifest tags (latest, v{Major}, full version) remain. Linuxbrew install path is dropped; Linux users should use the deb/rpm or Docker image.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
666 B
Docker
20 lines
666 B
Docker
FROM busybox:latest AS builder
|
|
# we have to do this hop because distroless is bare without common shell commands
|
|
|
|
RUN mkdir -p /etc/unpoller
|
|
# copy over example config for cnfg environment-based default config
|
|
COPY examples/up.conf.example /etc/unpoller/up.conf
|
|
COPY unpoller_manual.html /etc/unpoller/manual.html
|
|
COPY README.html /etc/unpoller/readme.html
|
|
|
|
FROM gcr.io/distroless/static-debian11
|
|
ARG TARGETPLATFORM
|
|
|
|
COPY ${TARGETPLATFORM}/unpoller /usr/bin/unpoller
|
|
COPY --from=builder /etc/unpoller /etc/unpoller
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
|
CMD ["/usr/bin/unpoller", "--health"]
|
|
|
|
ENTRYPOINT [ "/usr/bin/unpoller" ]
|