diff --git a/Dockerfile b/Dockerfile index f71c93aba7..e131fc113f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -132,9 +132,10 @@ RUN --mount=type=bind,target=./pyproject.toml,src=./pyproject.toml \ . "$HOME/.cargo/env" && \ python -m venv /ak-root/venv/ && \ bash -c "source ${VENV_PATH}/bin/activate && \ - pip3 install --upgrade pip && \ - pip3 install poetry && \ + pip3 install --upgrade pip poetry && \ poetry config --local installer.no-binary cryptography,xmlsec,lxml,python-kadmin-rs && \ + poetry install --only=main --no-ansi --no-interaction --no-root && \ + pip uninstall cryptography -y && \ poetry install --only=main --no-ansi --no-interaction --no-root" # Stage 6: Run