Maxime
commited on
tweak: improve base builder for smaller layers (#500)
Browse files- docker/Dockerfile-base +5 -7
docker/Dockerfile-base
CHANGED
|
@@ -13,16 +13,14 @@ ARG CUDA="118"
|
|
| 13 |
|
| 14 |
ENV PYTHON_VERSION=$PYTHON_VERSION
|
| 15 |
|
| 16 |
-
RUN apt-get update
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
RUN wget \
|
| 20 |
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
| 21 |
&& mkdir /root/.conda \
|
| 22 |
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
| 23 |
-
&& rm -f Miniconda3-latest-Linux-x86_64.sh
|
| 24 |
-
|
| 25 |
-
RUN conda create -n "py${PYTHON_VERSION}" python="${PYTHON_VERSION}"
|
| 26 |
|
| 27 |
ENV PATH="/root/miniconda3/envs/py${PYTHON_VERSION}/bin:${PATH}"
|
| 28 |
|
|
|
|
| 13 |
|
| 14 |
ENV PYTHON_VERSION=$PYTHON_VERSION
|
| 15 |
|
| 16 |
+
RUN apt-get update \
|
| 17 |
+
&& apt-get install -y wget git build-essential ninja-build git-lfs libaio-dev && rm -rf /var/lib/apt/lists/*
|
| 18 |
+
&& wget \
|
|
|
|
| 19 |
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
| 20 |
&& mkdir /root/.conda \
|
| 21 |
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
| 22 |
+
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
|
| 23 |
+
&& conda create -n "py${PYTHON_VERSION}" python="${PYTHON_VERSION}"
|
|
|
|
| 24 |
|
| 25 |
ENV PATH="/root/miniconda3/envs/py${PYTHON_VERSION}/bin:${PATH}"
|
| 26 |
|