diff --git a/contrib/container/Dockerfile b/contrib/container/Dockerfile index b47aeaf7ea..a9fb699bda 100644 --- a/contrib/container/Dockerfile +++ b/contrib/container/Dockerfile @@ -137,6 +137,9 @@ COPY src/backend/InvenTree ${INVENTREE_BACKEND_DIR}/InvenTree COPY src/backend/requirements.txt ${INVENTREE_BACKEND_DIR}/requirements.txt COPY --from=frontend ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web +# Fix invoke command path for InvenTree environment check +RUN ln -sf /root/.local/bin/invoke /bin/invoke + # Launch the production server CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree diff --git a/tasks.py b/tasks.py index 415b00f096..78c56dceed 100644 --- a/tasks.py +++ b/tasks.py @@ -223,7 +223,7 @@ def envcheck_invoke_cmd(): correct_cmd: Optional[str] = None if is_rtd_environment() or is_docker_environment() or is_devcontainer_environment(): - pass + return # Skip invoke command check for Docker/RTD/DevContainer environments elif is_pkg_installer(load_content=True) and not is_pkg_installer_by_path(): correct_cmd = 'inventree run invoke' else: