2024-01-25 23:32:17 +08:00
|
|
|
FROM toxchat/c-toxcore:sources AS sources
|
|
|
|
FROM alpine:3.19.0 AS build
|
2022-02-05 22:37:01 +08:00
|
|
|
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
|
|
LANGUAGE=en_US.UTF-8 \
|
|
|
|
LC_CTYPE=en_US.UTF-8 \
|
|
|
|
LC_ALL=en_US.UTF-8
|
|
|
|
|
2024-01-10 01:57:27 +08:00
|
|
|
RUN apk add --no-cache doxygen git graphviz texlive \
|
2022-02-05 22:37:01 +08:00
|
|
|
&& git clone --depth=1 https://github.com/jothepro/doxygen-awesome-css.git /work/doxygen-awesome-css
|
|
|
|
WORKDIR /work
|
2024-01-25 23:32:17 +08:00
|
|
|
COPY --from=sources /src/ /work/
|
|
|
|
COPY docs/Doxyfile /work/Doxyfile
|
|
|
|
RUN echo "WARN_AS_ERROR = YES" >> Doxyfile \
|
2022-02-09 03:15:37 +08:00
|
|
|
&& sed -i -e 's/^non_null([^)]*) *//;s/^nullable([^)]*) *//' $(find . -name "*.[ch]") \
|
2022-02-06 00:45:21 +08:00
|
|
|
&& doxygen Doxyfile
|
2022-02-05 22:37:01 +08:00
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build /work/_docs/html/ /usr/share/nginx/html/
|