blumeops/containers/kiwix-serve/Dockerfile
Erich Blume 95021e3201 Tier 1 version bumps for upstream images, helm charts, and custom containers
Upstream images:
- kube-state-metrics v2.13.0 → v2.18.0
- prometheus v3.2.1 → v3.9.1
- loki 3.3.2 → 3.6.5
- alloy v1.5.1 → v1.13.1
- tailscale v1.92.5 → v1.94.1 (proxy + operator)
- navidrome :latest → v0.60.3 (pin version)

Helm charts:
- CloudNativePG v0.27.0 → v0.27.1
- 1Password Connect 2.2.1 → 2.3.0

Custom Dockerfiles:
- miniflux 2.2.16 → 2.2.17 (security fix), alpine 3.22
- kubectl v1.34.1 → v1.34.4, alpine 3.22
- kiwix-serve alpine 3.22
- nettest alpine 3.22
- transmission alpine 3.22, package 4.0.6-r4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 17:07:58 -08:00

45 lines
1.4 KiB
Docker

# kiwix-serve container
# Downloads pre-built binary from kiwix mirror
FROM alpine:3.22
ARG TARGETPLATFORM
ARG KIWIX_VERSION=3.8.1
RUN set -e && \
apk --no-cache add dumb-init curl && \
# Detect architecture - use TARGETPLATFORM if set, otherwise detect from uname
if [ -n "$TARGETPLATFORM" ]; then \
echo "TARGETPLATFORM: $TARGETPLATFORM"; \
case "$TARGETPLATFORM" in \
linux/arm64*) ARCH="aarch64" ;; \
linux/amd64*) ARCH="x86_64" ;; \
*) ARCH="" ;; \
esac; \
else \
echo "TARGETPLATFORM not set, detecting from uname..."; \
UNAME_ARCH=$(uname -m); \
echo "uname -m: $UNAME_ARCH"; \
case "$UNAME_ARCH" in \
aarch64|arm64) ARCH="aarch64" ;; \
x86_64) ARCH="x86_64" ;; \
*) ARCH="" ;; \
esac; \
fi && \
if [ -z "$ARCH" ]; then \
echo "ERROR: Unsupported architecture"; \
exit 1; \
fi && \
url="http://mirror.download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-$ARCH-$KIWIX_VERSION.tar.gz" && \
echo "URL: $url" && \
curl -k -L $url | tar -xz -C /usr/local/bin/ --strip-components 1 && \
apk del curl
EXPOSE 80
# Run as non-root
RUN adduser -D -u 1000 kiwix
USER kiwix
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/bin/sh", "-c", "echo 'Use: kiwix-serve [options] <zim-files>' && kiwix-serve --help"]