Something went wrong. Try again.
Something went wrong. Try again.
whitepapers Containerfile
521 B 20 lines
at main
123456789101112131415161718192021FROM docker.io/library/alpine:3.21 AS build
RUN apk add --no-cache \ texlive \ texlive-luatex \ texmf-dist-latexextra \ texmf-dist-fontsextra
WORKDIR /workCOPY . .RUN for dir in */; do \ name=${dir%/}; \ if [ -f "$dir$name.tex" ]; then \ cd "$dir" && pdflatex -interaction=nonstopmode "$name.tex" && pdflatex -interaction=nonstopmode "$name.tex" && cd ..; \ fi; \ done && \ mkdir -p /out && find . -name '*.pdf' -exec cp {} /out/ \;
FROM scratchCOPY --from=build /out/ /