Skip to content

Commit

Permalink
fix: dont install if variable doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
redjson committed May 29, 2023
1 parent d28b5a7 commit 0a8ff2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions normalizer/resources/templates/dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ ENV JINA_PIP_INSTALL_PERF=1
# Need to uninstall jina first when upgrading 2.x to 3.x
# https://github.com/jina-ai/jina/issues/4194
RUN pip uninstall -y jina && pip install --upgrade ${ARG_PIP_JINA_VERSION}
RUN if [ "$ARG_DOCARRAY_VERSION" != "undefined" ] ; then \
RUN if [ -n "$ARG_DOCARRAY_VERSION" ] && [ "$ARG_DOCARRAY_VERSION" != "undefined" ] ; then \
pip uninstall -y docarray && pip install --upgrade docarray==${ARG_DOCARRAY_VERSION} ; \
fi
fi

0 comments on commit 0a8ff2c

Please sign in to comment.