From 923eb913047824897d7f58722c8940ddbd82c847 Mon Sep 17 00:00:00 2001 From: Maxime <672982+maximegmd@users.noreply.github.com> Date: Fri, 22 Sep 2023 22:17:50 +0200 Subject: [PATCH] tweak: improve base builder for smaller layers (#500) --- docker/Dockerfile-base | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile-base b/docker/Dockerfile-base index d1c02e69d..5d1e2c2b8 100644 --- a/docker/Dockerfile-base +++ b/docker/Dockerfile-base @@ -13,16 +13,14 @@ ARG CUDA="118" ENV PYTHON_VERSION=$PYTHON_VERSION -RUN apt-get update -RUN apt-get install -y wget git build-essential ninja-build git-lfs libaio-dev && rm -rf /var/lib/apt/lists/* - -RUN wget \ +RUN apt-get update \ + && apt-get install -y wget git build-essential ninja-build git-lfs libaio-dev && rm -rf /var/lib/apt/lists/* + && wget \ https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ && mkdir /root/.conda \ && bash Miniconda3-latest-Linux-x86_64.sh -b \ - && rm -f Miniconda3-latest-Linux-x86_64.sh - -RUN conda create -n "py${PYTHON_VERSION}" python="${PYTHON_VERSION}" + && rm -f Miniconda3-latest-Linux-x86_64.sh \ + && conda create -n "py${PYTHON_VERSION}" python="${PYTHON_VERSION}" ENV PATH="/root/miniconda3/envs/py${PYTHON_VERSION}/bin:${PATH}"