diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-05 15:19:16 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-05 15:19:20 -0700 |
| commit | c5ea4a807907306c82017ec73a9e41805c2f0714 (patch) | |
| tree | ef7e4d9b3ce43816e75f73eb7a5da33c8a7909fd | |
| parent | aeb6647aa6e151873e0f5cd312148306315b0c82 (diff) | |
libghostty: use Arch for docs container to get later Doxygen
| -rw-r--r-- | src/build/docker/lib-c-docs/Dockerfile | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/src/build/docker/lib-c-docs/Dockerfile b/src/build/docker/lib-c-docs/Dockerfile index 76f29ad21..5667c6607 100644 --- a/src/build/docker/lib-c-docs/Dockerfile +++ b/src/build/docker/lib-c-docs/Dockerfile @@ -1,40 +1,17 @@ #-------------------------------------------------------------------- -# Build Doxygen from source -#-------------------------------------------------------------------- -FROM ubuntu:24.04 AS doxygen-builder - -ARG DOXYGEN_VERSION=1.14.0 -RUN apt-get update && apt-get install -y \ - wget \ - cmake \ - g++ \ - flex \ - bison \ - python3 \ - && rm -rf /var/lib/apt/lists/* \ - && wget -q https://www.doxygen.nl/files/doxygen-${DOXYGEN_VERSION}.src.tar.gz \ - && tar -xzf doxygen-${DOXYGEN_VERSION}.src.tar.gz \ - && cd doxygen-${DOXYGEN_VERSION} \ - && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \ - && make -j$(nproc) \ - && make install \ - && cd .. \ - && rm -rf doxygen-${DOXYGEN_VERSION}* - -#-------------------------------------------------------------------- # Generate documentation with Doxygen #-------------------------------------------------------------------- -FROM ubuntu:24.04 AS builder +FROM alpine:latest AS builder # Build argument for noindex header ARG ADD_NOINDEX_HEADER=false -RUN apt-get update && apt-get install -y \ - graphviz \ - && rm -rf /var/lib/apt/lists/* -COPY --from=doxygen-builder /usr/local/bin/doxygen /usr/local/bin/doxygen +RUN apk add --no-cache \ + doxygen \ + graphviz WORKDIR /ghostty COPY include/ ./include/ COPY Doxyfile ./ +COPY DoxygenLayout.xml ./ RUN mkdir -p zig-out/share/ghostty/doc/libghostty RUN doxygen |
