mirror of
https://github.com/unpoller/unpoller.git
synced 2026-09-29 19:11:17 +02:00
Debian 11 (bullseye) has reached end of life, so the gcr.io/distroless/static-debian11 base image no longer receives security updates. Move to static-debian13 (trixie), which is published for every platform the release targets (linux/amd64, linux/arm64, linux/arm/v7).
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-debian13
|
|
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" ]
|