This commit is contained in:
XXXXRT666 2025-04-30 21:34:02 +01:00
parent 8e5e624a72
commit b11931c1bd
2 changed files with 19 additions and 3 deletions

View File

@ -25,6 +25,20 @@ else
exit 1
fi
bash anaconda.sh -b -p "$HOME/anaconda3"
LOG_PATH="/tmp/anaconda-install.log"
bash anaconda.sh -b -p "$HOME/anaconda3" >"$LOG_PATH" 2>&1
if [ $? -eq 0 ]; then
echo "== Anaconda Installed =="
else
echo "Failed to Install Anaconda"
tail -n 50 "$LOG_PATH"
exit 1
fi
rm anaconda.sh
rm $LOG_PATH
"$HOME/anaconda3/bin/conda" clean -p

View File

@ -11,7 +11,7 @@ ARG CUDA_VERSION=12.4
ENV CUDA_VERSION=${CUDA_VERSION}
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y -q --no-install-recommends \
apt-get install -y -qq --no-install-recommends \
build-essential \
gcc \
g++ \
@ -36,10 +36,12 @@ ENV LITE=${LITE}
ARG WORKFLOW=false
ENV WORKFLOW=${WORKFLOW}
ARG TARGETPLATFORM=linux/amd64
ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM}
RUN echo "${TARGETPLATFORM}" && echo ${WORKFLOW}
ENV HOME="/root"
RUN bash Docker/anaconda_install.sh
RUN echo "== $HOME/anaconda3/pkgs ==" && du -h --max-depth=2 $HOME/anaconda3/pkgs | sort -hr | head -n 10 && \