From e2422c22b9fb69ebe3bb9c2a3934e439d8fecfb2 Mon Sep 17 00:00:00 2001 From: Zhaofeng Miao <522856232@qq.com> Date: Fri, 7 Jan 2022 12:34:02 +0800 Subject: [PATCH] fix(dockerfile): use latest development version if specify master --- normalizer/resources/templates/dockerfile.base | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/normalizer/resources/templates/dockerfile.base b/normalizer/resources/templates/dockerfile.base index 613e518..68f0400 100644 --- a/normalizer/resources/templates/dockerfile.base +++ b/normalizer/resources/templates/dockerfile.base @@ -22,6 +22,8 @@ ENV JINA_VERSION=${ARG_JINA_VERSION} \ # Both JINA_PIP_INSTALL_CORE and JINA_PIP_INSTALL_PERF were set no matter in any cases # https://github.com/jina-ai/jina/pull/3673 RUN unset JINA_PIP_INSTALL_CORE && \ - unset JINA_PIP_INSTALL_PERF && \ - JINA_PIP_INSTALL_PERF=1 pip install --upgrade jina==${ARG_JINA_VERSION} + unset JINA_PIP_INSTALL_PERF +ENV JINA_PIP_INSTALL_PERF=1 + +RUN if [ "${ARG_JINA_VERSION}" = 'master' ]; then pip install --upgrade --pre jina; else pip install --upgrade jina==${ARG_JINA_VERSION}; fi \ No newline at end of file