mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-17 21:12:39 +00:00
34 lines
1.0 KiB
Docker
34 lines
1.0 KiB
Docker
#--------------------------------------------------------------------
|
|
# Generate documentation with Doxygen
|
|
#--------------------------------------------------------------------
|
|
FROM alpine:latest AS builder
|
|
|
|
# Build argument for noindex header
|
|
ARG ADD_NOINDEX_HEADER=false
|
|
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
|
|
|
|
#--------------------------------------------------------------------
|
|
# Host the static HTML
|
|
#--------------------------------------------------------------------
|
|
FROM nginx:alpine AS runtime
|
|
|
|
# Pass build arg to runtime stage
|
|
ARG ADD_NOINDEX_HEADER=false
|
|
ENV ADD_NOINDEX_HEADER=$ADD_NOINDEX_HEADER
|
|
|
|
# Copy documentation and entrypoint script
|
|
COPY --from=builder /ghostty/zig-out/share/ghostty/doc/libghostty /usr/share/nginx/html
|
|
COPY src/build/docker/lib-c-docs/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
EXPOSE 80
|
|
CMD ["/entrypoint.sh"]
|