feat(dify-agent): add shell layer (#36838)

This commit is contained in:
盐粒 Yanli authored and GitHub committed 2026-06-02 07:54:52 +00:00
1 parent dea4e66456
commit eae44cfecb
29 files changed
+3273 -72

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
tmux \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install --no-cache-dir \
shell-session-manager==2.1.1 \
uv
RUN useradd --create-home --shell /bin/sh dify
USER dify
WORKDIR /home/dify
EXPOSE 5004
CMD ["shellctl", "serve", "--listen", "0.0.0.0:5004"]