mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-01 01:10:21 +08:00
* feat: filesystem grep, read, edit file * feat: add file write tool and enhance file read functionality * feat: enhance tool prompt formatting and add escaped text decoding for file editing * feat: remove redundant safe path tests from security restrictions * feat: implement file read tool with support for text and image files, including validation for large files * feat: add file read utilities and integrate with filesystem tools * refactor: move computer tools to builtin tools registry * refactor: remove unused plugin_context parameter from _apply_sandbox_tools * feat: supports to display enabled builtin tools in configs * feat: add tooltip for disabled builtin tools and update localization strings * feat: add workspace extra prompt handling in message processing * feat: add ripgrep installation to Dockerfile * perf: shell executed in workspace dir in local env * feat: enhance file reading capabilities to support PDF and DOCX parsing, including workspace storage for long documents * feat: update converted text notice to suggest using grep for large files * feat: implement handling for large tool results with overflow file writing and read tool integration * fix: test * feat: enhance onboarding steps to include computer access configuration and related help information * feat: add support for additional temporary path in restricted environment checks * feat: update computer access hints and add detailed configuration instructions
35 lines
871 B
Docker
35 lines
871 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /AstrBot
|
|
|
|
COPY . /AstrBot/
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
build-essential \
|
|
python3-dev \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
ca-certificates \
|
|
bash \
|
|
ffmpeg \
|
|
libavcodec-extra \
|
|
curl \
|
|
gnupg \
|
|
git \
|
|
ripgrep \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN python -m pip install uv \
|
|
&& echo "3.12" > .python-version \
|
|
&& uv lock \
|
|
&& uv export --format requirements.txt --output-file requirements.txt --frozen \
|
|
&& uv pip install -r requirements.txt --no-cache-dir --system \
|
|
&& uv pip install socksio uv pilk --no-cache-dir --system
|
|
|
|
EXPOSE 6185
|
|
|
|
CMD ["python", "main.py"]
|