File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
jupyter/minimal/ubi9-python-3.12 Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ ############################
2
+ # Stage 1: PDF Tool Build #
3
+ ############################
4
+ FROM registry.access.redhat.com/ubi9/python-312:latest AS pdf-builder
5
+
6
+ WORKDIR /opt/app-root/bin
7
+
8
+ # OS Packages needs to be installed as root
9
+ USER 0
10
+
11
+ # Copy scripts
12
+ COPY jupyter/utils/install_texlive.sh ./install_texlive.sh
13
+ COPY jupyter/utils/install_pandoc.sh ./install_pandoc.sh
14
+ RUN chmod +x install_texlive.sh install_pandoc.sh
15
+
16
+ RUN ./install_texlive.sh
17
+ RUN ./install_pandoc.sh
18
+
1
19
####################
2
20
# base #
3
21
####################
@@ -54,6 +72,10 @@ COPY ${JUPYTER_REUSABLE_UTILS} utils/
54
72
55
73
USER 0
56
74
75
+ # Copy built TeXLive and Pandoc binaries only (no build deps)
76
+ COPY --from=pdf-builder /usr/local/texlive /usr/local/texlive
77
+ COPY --from=pdf-builder /usr/local/pandoc /usr/local/pandoc
78
+
57
79
# Dependencies for PDF export begin
58
80
RUN ./utils/install_pdf_deps.sh
59
81
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
You can’t perform that action at this time.
0 commit comments