From 6b6e3f0c155f12495ed4ce3ea43454e9690e8138 Mon Sep 17 00:00:00 2001 From: Djohn Date: Sat, 7 Feb 2026 11:04:37 +0100 Subject: [PATCH] fix: download mdbook binary directly --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd7a6fc..5d45f29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ -# Build stage - use pre-built mdbook -FROM peaceiris/mdbook:v0.4.40 AS builder +# Build stage +FROM alpine:3.19 AS builder + +RUN apk add --no-cache curl tar +RUN curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-musl.tar.gz | tar -xz -C /usr/local/bin WORKDIR /book COPY book.toml .