From 349bc5bd5312b7371a5961b49d23e145f54ea238 Mon Sep 17 00:00:00 2001 From: Rafal Skolasinski Date: Tue, 14 Jan 2020 14:23:38 +0000 Subject: [PATCH] make gpu image Python 3 exclusive, closes #1324 --- wrappers/s2i/python/Dockerfile.gpu.tmpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wrappers/s2i/python/Dockerfile.gpu.tmpl b/wrappers/s2i/python/Dockerfile.gpu.tmpl index c874643cc8..1b9dc64c28 100644 --- a/wrappers/s2i/python/Dockerfile.gpu.tmpl +++ b/wrappers/s2i/python/Dockerfile.gpu.tmpl @@ -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