2024-04-01 23:50:43 +02:00
|
|
|
# Build
|
|
|
|
FROM alpine:latest AS build
|
|
|
|
LABEL authors="gnousEU"
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN apk add wget gzip tar && \
|
2024-11-14 22:59:25 +01:00
|
|
|
wget -O mdbook.tar.gz https://github.com/rust-lang/mdBook/releases/download/v0.4.42/mdbook-v0.4.42-x86_64-unknown-linux-musl.tar.gz && \
|
2024-04-01 23:50:43 +02:00
|
|
|
tar xvf mdbook.tar.gz && \
|
|
|
|
./mdbook build
|
|
|
|
|
2024-11-14 22:59:25 +01:00
|
|
|
FROM ghcr.io/static-web-server/static-web-server:2.33
|
2024-04-01 23:50:43 +02:00
|
|
|
COPY --from=build /build/book /public
|