feat:dockerfile添加以及向量数据库支持配置为远程数据库

This commit is contained in:
雷雨
2025-09-25 10:32:01 +08:00
parent 7132d07921
commit 873a02ba1d
3 changed files with 23 additions and 6 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM docker.m.daocloud.io/python:3.12-slim
WORKDIR /app
COPY . /app
ENV TZ=Asia/Shanghai \
LANG=C.UTF-8
RUN rm -rf logs .git .idea .venv && apt-get update && apt-get install -y vim curl && pip install -r requirement.txt -i https://mirrors.aliyun.com/pypi/simple/
RUN mkdir -p /app/logs && touch /app/logs/sqlbot.log && rm -rf *.whl
EXPOSE 8084
CMD ["python","main_service.py"]