Commit 89ba5b7e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Move deletion of conda cache to the end of the dockerfile.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 2dc8a86e
Pipeline #27370 failed with stages
in 2 minutes and 17 seconds
......@@ -8,13 +8,11 @@ COPY *.yml /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
# -> also include packages for conda deployment and upload
# NOTE: The pkgs directory (cache) is deleted because otherwise conda env create takes hours within a docker container.
RUN /bin/bash -i -c "\
source /root/mambaforge/bin/activate ; \
mamba update -n base -c conda-forge --all;\
conda activate ci_env; \
mamba env update -n ci_env -f /root/environment_enpt_enmapboxapp.yml; \
rm -rf /root/mambaforge/pkgs"
mamba env update -n ci_env -f /root/environment_enpt_enmapboxapp.yml"
# copy enmapbox code to /tmp
COPY enmapbox /tmp/enmapbox
......@@ -28,8 +26,10 @@ RUN bash -i -c "\
conda list"
# install enpt (into separate conda environment)
# NOTE: The pkgs directory (cache) is deleted because otherwise conda env create takes hours within a docker container.
RUN bash -i -c "\
source /root/mambaforge/bin/activate ; \
mamba create -n enpt -c conda-forge enpt ; \
conda activate enpt ; \
conda list"
conda list ; \
rm -rf /root/mambaforge/pkgs"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment