diff --git a/Justfile b/Justfile index a8172c1d..a364efbc 100644 --- a/Justfile +++ b/Justfile @@ -233,7 +233,7 @@ pullspec-for-os TYPE NAME: @jq -r --arg v "{{NAME}}" '."{{TYPE}}"[$v]' < hack/os-image-map.json build-mdbook: - cd docs && podman build {{base_buildargs}} -t localhost/bootc-mdbook -f Dockerfile.mdbook + podman build {{generic_buildargs}} -t localhost/bootc-mdbook -f docs/Dockerfile.mdbook . # Generate the rendered HTML to the target DIR directory build-mdbook-to DIR: build-mdbook @@ -241,7 +241,7 @@ build-mdbook-to DIR: build-mdbook set -xeuo pipefail # Create a temporary container to extract the built docs container_id=$(podman create localhost/bootc-mdbook) - podman cp ${container_id}:/src/book {{DIR}} + podman cp ${container_id}:/src/docs/book {{DIR}} podman rm -f ${container_id} mdbook-serve: build-mdbook diff --git a/docs/Dockerfile.mdbook b/docs/Dockerfile.mdbook index 3020eeb5..f0d67fdf 100644 --- a/docs/Dockerfile.mdbook +++ b/docs/Dockerfile.mdbook @@ -1,33 +1,29 @@ -FROM registry.access.redhat.com/ubi10/ubi:latest -# An intermediate layer which caches the RPMS +FROM ghcr.io/bootc-dev/devenv-c10s:latest +USER root +# Install mdbook tooling via cargo-binstall RUN <