Skip to content

Commit

Permalink
install missing conda deps
Browse files Browse the repository at this point in the history
  • Loading branch information
CatTail authored and seldondev committed Jul 2, 2020
1 parent 004a49d commit 8cd3fa5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wrappers/s2i/python/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ RUN apt-get update -y && \
ln -s /usr/bin/pip3 /usr/bin/pip && \
ln -s /usr/bin/python3 /usr/bin/python

ENV PATH /opt/conda/bin:$PATH

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc && \
find /opt/conda/ -follow -type f -name '*.a' -delete && \
find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
/opt/conda/bin/conda clean -afy

RUN mkdir microservice
WORKDIR /microservice

Expand Down

0 comments on commit 8cd3fa5

Please sign in to comment.