Skip to content

Commit

Permalink
make gpu image Python 3 exclusive, closes #1324
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSkolasinski authored and seldondev committed Jan 14, 2020
1 parent 00e50db commit 349bc5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions wrappers/s2i/python/Dockerfile.gpu.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04

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

RUN apt-get update -y

RUN apt-get install -y python-pip python-dev build-essential
RUN apt-get install -y python3-pip python3-dev
# 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 && \
ln -s /usr/bin/pip3 /usr/bin/pip && \
ln -s /usr/bin/python3 /usr/bin/python

RUN mkdir microservice
WORKDIR /microservice
Expand Down

0 comments on commit 349bc5b

Please sign in to comment.