diff --git a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt index 4dfc867..c499574 100644 --- a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt +++ b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt @@ -2,8 +2,12 @@ FROM {{base_image}} COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml RUN micromamba install -y -n base -f /tmp/conda.yml \ {{base_packages}} - && micromamba env export --explicit > environment.lock \ - && cat environment.lock - && micromamba clean -a -y + && micromamba env export --explicit > environment.lock + +RUN echo "conda_lock_start" \ + && cat environment.lock \ + && echo "conda_lock_end" + +RUN micromamba clean -a -y USER root ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH" diff --git a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt index b36e303..26283d3 100644 --- a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt +++ b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt @@ -2,7 +2,12 @@ FROM {{base_image}} RUN \ micromamba install -y -n base {{channel_opts}} {{target}} \ {{base_packages}} - && micromamba env export --explicit > environment.lock \ - && micromamba clean -a -y + && micromamba env export --explicit > environment.lock + +RUN echo "conda_lock_start" \ + && cat environment.lock \ + && echo "conda_lock_end" + +RUN micromamba clean -a -y USER root ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"