From: Cristina Pauna Date: Thu, 14 Nov 2019 14:28:33 +0000 (+0200) Subject: [os] Fix python version X-Git-Tag: 2.0.0~2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=86d161416e633967e84a48ebe9d1277a7873dcac;p=validation.git [os] Fix python version The python version we currently use in all our containers is 3.6 Also make sure this version is the default one. JIRA: VAL-86 Signed-off-by: Cristina Pauna Change-Id: I414adf82f436c21abeb7d11d13b82beab8cc384b --- diff --git a/docker/os/Dockerfile b/docker/os/Dockerfile index 61d1848..a47485e 100644 --- a/docker/os/Dockerfile +++ b/docker/os/Dockerfile @@ -57,7 +57,8 @@ COPY --from=build /opt/akraino/validation /opt/akraino/validation COPY --from=build /opt/akraino/ltp.tar.gz /opt/akraino/ltp.tar.gz RUN apt-get update && apt-get -y install \ - python3-pip python3.7 &&\ + python3-pip python3.6 && \ + cd /usr/bin && ln -s python3 python && \ pip3 install -r /wheels/requirements/pip-requirements.txt \ -f /wheels && \ rm -rf /wheels && \ @@ -65,5 +66,5 @@ RUN apt-get update && apt-get -y install \ rm -rf /var/cache/apt/* && \ rm -rf /var/lib/apt/lists/* -# Install blueval dependencies +# Install bluval dependencies RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt