Skip to content

Commit

Permalink
Merge pull request #582 from conda-forge/docker_foreach_cleanup
Browse files Browse the repository at this point in the history
Cleanup for each Docker install step
  • Loading branch information
jakirkham authored Mar 22, 2024
2 parents 7a52a3b + 9dcdaab commit fac0bfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ADD https://loripsum.net/api /opt/docker/etc/gibberish
COPY conda-requirements.txt /
RUN echo "**** install dev packages ****" && \
apk add --no-cache bash ca-certificates wget && \
rm -rf /var/cache/apk/* && \
\
echo "**** get Miniforge3 ****" && \
mkdir -p "$CONDA_DIR" && \
Expand All @@ -53,6 +54,7 @@ RUN echo "**** install dev packages ****" && \
\
echo "**** install Miniforge3 ****" && \
bash miniforge3.sh -f -b -p "$CONDA_DIR" && \
rm -f miniforge3.sh && \
\
echo "**** install base env ****" && \
source /opt/conda/etc/profile.d/conda.sh && \
Expand All @@ -63,9 +65,6 @@ RUN echo "**** install dev packages ****" && \
conda config --set always_yes yes && \
conda config --set solver libmamba && \
conda install --quiet --file conda-requirements.txt && \
echo "**** cleanup ****" && \
rm -rf /var/cache/apk/* && \
rm -f miniforge3.sh && \
conda clean --all --force-pkgs-dirs --yes && \
find "$CONDA_DIR" -follow -type f \( -iname '*.a' -o -iname '*.pyc' -o -iname '*.js.map' \) -delete && \
\
Expand Down

0 comments on commit fac0bfc

Please sign in to comment.