Skip to content

Commit 0da894e

Browse files
committed
RHAIENG-2186: build(minimal): use texlive rpms in minimal cpu images
1 parent 8852164 commit 0da894e

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

jupyter/minimal/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ WORKDIR /opt/app-root/bin
1818
USER 0
1919

2020
# Copy scripts
21-
COPY jupyter/utils/install_texlive.sh ./install_texlive.sh
2221
COPY jupyter/utils/install_pandoc.sh ./install_pandoc.sh
23-
RUN chmod +x install_texlive.sh install_pandoc.sh
2422

25-
RUN ./install_texlive.sh
2623
RUN ./install_pandoc.sh
2724

2825
####################
@@ -107,14 +104,14 @@ COPY ${JUPYTER_REUSABLE_UTILS} utils/
107104
USER 0
108105

109106
# Dependencies for PDF export
110-
RUN --mount=type=cache,from=pdf-builder,source=/usr/local/,target=/pdf_builder/,rw \
111-
bash -c ' \
112-
if [[ "$(uname -m)" == "ppc64le" ]]; then \
113-
cp -r /pdf_builder/texlive /usr/local/; \
114-
cp -r /pdf_builder/pandoc /usr/local/; \
115-
else \
116-
./utils/install_pdf_deps.sh; \
117-
fi'
107+
RUN --mount=type=cache,from=pdf-builder,source=/usr/local/,target=/pdf_builder/,rw bash <<'EOF'
108+
if [[ "$(uname -m)" == "ppc64le" ]]; then
109+
cp -r /pdf_builder/pandoc /usr/local/
110+
./utils/install_texlive.sh
111+
else
112+
./utils/install_pdf_deps.sh
113+
fi
114+
EOF
118115

119116
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
120117

0 commit comments

Comments
 (0)