diff --git a/dockerfiles/latex-builder/Dockerfile b/dockerfiles/latex-builder/Dockerfile
index 10615679ab93a6b2f8b798f833ff5f84aadfd560..22de3fdb0cd8d112339455cb3ca56bcdcd9fd281 100644
--- a/dockerfiles/latex-builder/Dockerfile
+++ b/dockerfiles/latex-builder/Dockerfile
@@ -9,15 +9,15 @@ FROM ${CI_AWE_IMAGE_BASE}/conda-builder:${CI_AWE_IMAGE_TAG}
 LABEL version="1.2"
 LABEL description="Image for building LaTeX documentation through tectonic"
 
-ARG CONDA_PREFIX=/opt/conda
-
 # Compiling the example will let tectonic pull most common LaTeX packages,
 # thereby increasing continuous integration speed.
 COPY example.tex /root/example.tex
 
+# Sourcing bashrc activates the base conda environment.
 # Biber and tectonic need to have matching versions, so it is not feasible to
 # release the pin on either of them.
-RUN ${CONDA_PREFIX}/bin/mamba install "tectonic==0.9.0" texlive-core "malramsay::biber==2.14" \
-    && ${CONDA_PREFIX}/bin/tectonic /root/example.tex \
+RUN source ~/.bashrc \
+    && mamba install "tectonic==0.9.0" texlive-core "malramsay::biber==2.14" \
+    && tectonic /root/example.tex \
     && curl -o /usr/local/bin/git-latexdiff https://gitlab.com/git-latexdiff/git-latexdiff/-/raw/1.6.0/git-latexdiff \
     && chmod +x /usr/local/bin/git-latexdiff