Skip to content

Commit

Permalink
remove extra pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
CatTail authored and seldondev committed Jul 2, 2020
1 parent 61569c5 commit 507b0ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wrappers/s2i/python/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04

LABEL io.openshift.s2i.scripts-url="image:///s2i/bin"

# Install Python 3 and symlink `pip` and `python` to use Python 3
RUN apt-get update -y && \
apt-get install -y python3-pip python3-dev wget && \
ln -s /usr/bin/pip3 /usr/bin/pip && \
ln -s /usr/bin/python3 /usr/bin/python
apt-get install -y wget

ENV PATH /opt/conda/bin:$PATH

# Install Miniconda3
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 && \
Expand All @@ -30,7 +28,7 @@ COPY ./s2i/bin/ /s2i/bin
COPY requirements_gpu.txt ./requirements.txt
COPY version.txt /microservice/version.txt
COPY _python/python/licenses/license.txt .
RUN pip3 install -r requirements.txt
RUN pip install -r requirements.txt

RUN mkdir -p /.conda && chmod a+rwx /.conda

Expand Down

0 comments on commit 507b0ec

Please sign in to comment.