From 2d9c88fca522a007bd71f151a23ce5df720ef2a3 Mon Sep 17 00:00:00 2001
From: Teake Nutma <t.a.nutma@rug.nl>
Date: Wed, 29 Jun 2022 16:49:09 +0200
Subject: [PATCH] Add comment and use mamba

---
 dockerfiles/latex-builder/Dockerfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dockerfiles/latex-builder/Dockerfile b/dockerfiles/latex-builder/Dockerfile
index 562b523..710de18 100644
--- a/dockerfiles/latex-builder/Dockerfile
+++ b/dockerfiles/latex-builder/Dockerfile
@@ -1,5 +1,9 @@
 ARG CI_AWE_IMAGE_BASE
 ARG CI_AWE_IMAGE_TAG
+
+# Note: building this image in GitLab CI will only work if the conda-builder image
+# is not already built for the revelant tag CI_AWE_IMAGE_TAG (set in .gitlab-ci.yml)
+# or if the conda-builder image is built along with this image.
 FROM ${CI_AWE_IMAGE_BASE}/conda-builder:${CI_AWE_IMAGE_TAG}
 
 LABEL version="1.2"
@@ -11,7 +15,7 @@ ARG CONDA_PREFIX=/opt/conda
 # thereby increasing continuous integration speed.
 COPY example.tex /root/example.tex
 
-RUN ${CONDA_PREFIX}/bin/conda install -c conda-forge "tectonic==0.1.15" texlive-core "malramsay::biber==2.11" \
+RUN ${CONDA_PREFIX}/bin/mamba install "tectonic==0.1.15" texlive-core "malramsay::biber==2.11" \
     && ${CONDA_PREFIX}/bin/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
-- 
GitLab