fix: download mdbook binary directly
This commit is contained in:
parent
6ab266ade5
commit
6b6e3f0c15
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
# Build stage - use pre-built mdbook
|
# Build stage
|
||||||
FROM peaceiris/mdbook:v0.4.40 AS builder
|
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
|
WORKDIR /book
|
||||||
COPY book.toml .
|
COPY book.toml .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue