Commit a6b7bc57 authored by nd-02110114's avatar nd-02110114
Browse files

🐳 back to layer wise cache removing

parent 1496be38
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -2,14 +2,16 @@ FROM nvidia/cuda:10.1-cudnn7-devel

# Install some utilities
RUN apt-get update && \
    apt-get install -y -q wget git vim libxrender1 libsm6 bzip2
    apt-get install -y -q wget git libxrender1 libsm6 bzip2 && \
    rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

# Install miniconda
RUN MINICONDA="Miniconda3-latest-Linux-x86_64.sh" && \
    wget --quiet https://repo.continuum.io/miniconda/$MINICONDA && \
    bash $MINICONDA -b -p /miniconda && \
    rm -f $MINICONDA && \
    echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
    echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
    conda clean -afy
ENV PATH /miniconda/bin:$PATH

# install latest version deepchem
@@ -17,15 +19,8 @@ RUN conda update -n base conda && \
    conda create -y --name deepchem python=3.6 && \
    . /miniconda/etc/profile.d/conda.sh && \
    conda activate deepchem && \
    conda install -c deepchem -c rdkit -c conda-forge -c omnia deepchem-gpu==2.3.0

# clean cache and reduce image size
RUN apt-get autoremove -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /usr/local/src/* && \
    conda clean -afy && \
    rm -rf ~/.cache/pip
    conda install -c deepchem -c rdkit -c conda-forge -c omnia deepchem-gpu==2.3.0 && \
    conda clean -afy

RUN echo "conda activate deepchem" >> ~/.bashrc
WORKDIR /root/mydir
+5 −9
Original line number Diff line number Diff line
@@ -2,14 +2,16 @@ FROM nvidia/cuda:10.1-cudnn7-devel

# Install some utilities
RUN apt-get update && \
    apt-get install -y -q wget git vim libxrender1 libsm6 bzip2
    apt-get install -y -q wget git libxrender1 libsm6 bzip2 && \
    rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*

# Install miniconda
RUN MINICONDA="Miniconda3-latest-Linux-x86_64.sh" && \
    wget --quiet https://repo.continuum.io/miniconda/$MINICONDA && \
    bash $MINICONDA -b -p /miniconda && \
    rm -f $MINICONDA && \
    echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
    echo ". /miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \
    conda clean -afy
ENV PATH /miniconda/bin:$PATH

# install deepchem with master branch
@@ -19,13 +21,7 @@ RUN conda update -n base conda && \
    . /miniconda/etc/profile.d/conda.sh && \
    bash scripts/install_deepchem_conda.sh deepchem && \
    conda activate deepchem && \
    python setup.py install

# clean cache and reduce image size
RUN apt-get autoremove -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /usr/local/src/* && \
    python setup.py install && \
    conda clean -afy && \
    rm -rf ~/.cache/pip