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