Skip to content

Commit

Permalink
fix(dockerfile): use latest development version if specify master
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleeit committed Jan 7, 2022
1 parent 502d903 commit e2422c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions normalizer/resources/templates/dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e2422c2

Please sign in to comment.