mirror of
https://github.com/langgenius/dify.git
synced 2026-06-25 00:28:14 +08:00
Merge branch 'local-agent-dockerfile-stub-shellctl' into deploy/agent
This commit is contained in:
@ -45,7 +45,8 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||
|
||||
COPY --from=packages ${VIRTUAL_ENV} ${VIRTUAL_ENV}
|
||||
|
||||
RUN ln -s ${VIRTUAL_ENV}/bin/dify-agent /usr/local/bin/dify-agent \
|
||||
RUN ${VIRTUAL_ENV}/bin/python -m compileall -q ${VIRTUAL_ENV}/lib/python3.12/site-packages \
|
||||
&& ln -s ${VIRTUAL_ENV}/bin/dify-agent /usr/local/bin/dify-agent \
|
||||
&& ln -s ${VIRTUAL_ENV}/bin/shellctl /usr/local/bin/shellctl \
|
||||
&& useradd --create-home --shell /bin/sh dify \
|
||||
&& mkdir -p /mnt/drive \
|
||||
|
||||
@ -82,6 +82,7 @@ def test_local_sandbox_dockerfile_installs_stub_client_and_shellctl() -> None:
|
||||
assert "SHELL_SESSION_MANAGER_VERSION=2.2.0" in dockerfile
|
||||
assert "shell-session-manager==${SHELL_SESSION_MANAGER_VERSION}" in dockerfile
|
||||
assert "DIFY_AGENT_STUB_DRIVE_BASE=/mnt/drive" in dockerfile
|
||||
assert "python -m compileall" in dockerfile
|
||||
assert "ln -s ${VIRTUAL_ENV}/bin/dify-agent /usr/local/bin/dify-agent" in dockerfile
|
||||
assert "ln -s ${VIRTUAL_ENV}/bin/shellctl /usr/local/bin/shellctl" in dockerfile
|
||||
assert "mkdir -p /mnt/drive" in dockerfile
|
||||
|
||||
Reference in New Issue
Block a user