astrbot1 / Dockerfile
MoYang303's picture
Update Dockerfile
61cd9f6 verified
FROM ghcr.io/moyangking/astrbot-huggingface:main
# 用于添加额外的apt包
ARG APT_PACKAGES=""
# 用于添加额外的pip包
ARG PIP_PACKAGES=""
USER root
ENV PIP_NO_CACHE_DIR=1
RUN mkdir -p /data && chown -R 777 /data
ARG PIP_PACKAGES="\
matplotlib jmcomic browser_cookie3 img2pdf kwmatcher aiosqlite markitdown_no_magika \
pymilvus==2.5.4 pypinyin==0.53.0 jsonpickle \
quart quart-cors uvicorn[standard] aiohttp aiofiles websockets \
pysqlite3-binary sqlalchemy[asyncio] sqlmodel \
numpy pandas scikit-learn scipy seaborn plotly \
jieba>=0.42.1 textstat wordcloud nltk spacy python-jose[cryptography] \
torch transformers sentence-transformers requests pyyaml toml configparser \
pydantic~=2.10.3 marshmallow python-dateutil loguru structlog cachetools redis cryptography \
pillow opencv-python bokeh pygments networkx urllib3 certifi psutil>=5.8.0 \
pytest pytest-asyncio black flake8 mypy click tqdm rich typer emoji \
faiss-cpu>=1.7.0 \
# 你新加的模型/机器人相关依赖
openai anthropic dashscope google-genai \
qq-botpy aiocqhttp py-cord>=2.6.1 slack-sdk python-telegram-bot wechatpy dingtalk-stream lark-oapi \
# 解析/抓取/文本处理
beautifulsoup4 chardet~=5.1.0 readability-lxml lxml_html_clean defusedxml telegramify-markdown \
# 其他实用工具
apscheduler docstring_parser aiodocker silk-python ormsgpack deprecated colorlog filelock watchfiles pydub \
mcp \
"
RUN if [ -n "${PIP_PACKAGES}" ]; then pip install ${PIP_PACKAGES}; fi
RUN chmod 777 /data
RUN chmod 777 /app