Files
unpoller_unpoller/Dockerfile
T
Guillaume Delbergue c4ee737497 build(docker): bump distroless base to static-debian13
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).
2026-09-15 13:53:31 +02:00

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" ]