File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ COPY distribution/requirements.txt ${APP_ROOT}/requirements.txt
1212# variant after install, pinned to the exact version the resolver chose.
1313RUN uv pip install --constraint ${APP_ROOT}/constraints.txt -r ${APP_ROOT}/requirements.txt \
1414 && OPENCV_VERSION=$(uv pip show opencv-python 2>/dev/null | awk '/^Version:/{print $2}' ) \
15+ && [ -n "${OPENCV_VERSION}" ] || { echo "ERROR: opencv-python not found after install" ; exit 1; } \
1516 && uv pip uninstall opencv-python \
1617 && uv pip install --constraint ${APP_ROOT}/constraints.txt "opencv-python-headless==${OPENCV_VERSION}"
1718
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ COPY distribution/requirements.txt ${APP_ROOT}/requirements.txt
1010# variant after install, pinned to the exact version the resolver chose.
1111RUN uv pip install --constraint ${APP_ROOT}/constraints.txt -r ${APP_ROOT}/requirements.txt \
1212 && OPENCV_VERSION=$(uv pip show opencv-python 2>/dev/null | awk '/^Version:/{print $2}') \
13+ && [ -n "${OPENCV_VERSION}" ] || { echo "ERROR: opencv-python not found after install"; exit 1; } \
1314 && uv pip uninstall opencv-python \
1415 && uv pip install --constraint ${APP_ROOT}/constraints.txt "opencv-python-headless==${OPENCV_VERSION}"
1516
You can’t perform that action at this time.
0 commit comments