Skip to content

Commit

Permalink
Tweak conda
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Dec 11, 2023
1 parent 8d57a83 commit 8c964e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dockerfiles/ubuntu-base-ci.DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ] ; then apt install -y nasm ; fi
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then CONDA_ARCH=aarch64 ; else CONDA_ARCH=x86_64 ; fi \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.10.0-1-Linux-$CONDA_ARCH.sh \
&& bash Miniconda3-py310_23.10.0-1-Linux-$CONDA_ARCH.sh -b \
&& rm -f Miniconda3-py310_23.10.0-1-Linux-$CONDA_ARCH.sh

# Create python 3.8 env
RUN /root/miniconda3/bin/conda init \
&& rm -f Miniconda3-py310_23.10.0-1-Linux-$CONDA_ARCH.sh \
&& /root/miniconda3/bin/conda init \
&& /root/miniconda3/bin/conda create -n py3.8 python=3.8

# Add conda to path
ENV PATH="/root/miniconda3/bin:${PATH}"

# install bazel
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then BAZEL_ARCH=arm64 ; else BAZEL_ARCH=amd64 ; fi \
&& wget https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-$BAZEL_ARCH \
Expand Down

0 comments on commit 8c964e1

Please sign in to comment.