Skip to content

Commit 0e0175d

Browse files
committed
re-incorporate changes to minimal notebook from 21e94bd commit
1 parent 254c794 commit 0e0175d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,14 @@ COPY ${JUPYTER_REUSABLE_UTILS} utils/
9191
USER 0
9292

9393
# Dependencies for PDF export begin
94-
RUN ./utils/install_pdf_deps.sh
95-
ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
96-
# Dependencies for PDF export end
94+
RUN --mount=type=cache,from=pdf-builder,source=/usr/local/,target=/pdf_builder/,rw \
95+
bash -c ' \
96+
if [[ "$(uname -m)" == "ppc64le" ]]; then \
97+
cp -r /pdf_builder/texlive /usr/local/; \
98+
cp -r /pdf_builder/pandoc /usr/local/; \
99+
else \
100+
./utils/install_pdf_deps.sh; \
101+
fi'
97102

98103
USER 1001
99104

jupyter/utils/install_texlive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ ln -sf "$TEX_BIN_DIR" /usr/local/texlive/bin/linux
8181
pdflatex --version
8282
tlmgr --version
8383

84-
fi
84+
fi

0 commit comments

Comments
 (0)