diff --git a/ci-conda.Dockerfile b/ci-conda.Dockerfile index e58c754..de9e954 100644 --- a/ci-conda.Dockerfile +++ b/ci-conda.Dockerfile @@ -1,19 +1,18 @@ -ARG CUDA_VER=notset -ARG LINUX_VER=notset -ARG PYTHON_VER=notset -ARG YQ_VER -ARG AWS_CLI_VER +ARG LOCKFILE +FROM mambaorg/micromamba:1.5.8 as conda_env_creator +ARG LOCKFILE +COPY --chown=$MAMBA_USER:$MAMBA_USER ${LOCKFILE} /tmp/env.lock +RUN cat /tmp/env.lock -FROM mikefarah/yq:${YQ_VER} as yq +RUN micromamba install --name base --yes conda-lock +RUN conda-lock install --prefix /opt/conda /tmp/env.lock -FROM amazon/aws-cli:${AWS_CLI_VER} as aws-cli - -FROM rapidsai/miniforge-cuda:cuda${CUDA_VER}-base-${LINUX_VER}-py${PYTHON_VER} +FROM +COPY --from conda_env_creator /opt/conda /opt/conda ARG TARGETPLATFORM ARG CUDA_VER ARG LINUX_VER -ARG PYTHON_VER ARG DEBIAN_FRONTEND=noninteractive @@ -103,77 +102,13 @@ EOF RUN wget https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - \ | tar -xz -C /usr/local/bin -# Install prereq for envsubst -RUN <