Browse Source

更新代码

gushoubang 4 months ago
parent
commit
f2ae79a695

+ 18 - 0
Dockerfile

@@ -0,0 +1,18 @@
+# 使用官方 Python 基础镜像
+FROM python:3.10
+
+# 设置工作目录
+WORKDIR /docker
+
+# 将当前目录下的所有文件复制到镜像中
+COPY . .
+
+# 安装 Python 依赖
+RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
+
+# 暴露应用程序端口(例如 Flask 的默认端口)
+EXPOSE 4000
+
+# 指定容器启动时运行的命令
+CMD ["python", "run.py"]
+

BIN
app/__pycache__/__init__.cpython-312.pyc


BIN
app/__pycache__/routes.cpython-312.pyc


BIN
app/services/__pycache__/__init__.cpython-312.pyc


BIN
app/services/__pycache__/chat_service.cpython-310.pyc


BIN
app/services/__pycache__/file_service.cpython-312.pyc


File diff suppressed because it is too large
+ 2 - 1
app/services/chat_service.py


BIN
chroma/16bd6e0f-28e4-4954-b30b-5f7d995bee54/data_level0.bin


BIN
chroma/16bd6e0f-28e4-4954-b30b-5f7d995bee54/header.bin


BIN
chroma/16bd6e0f-28e4-4954-b30b-5f7d995bee54/length.bin


+ 0 - 0
chroma/16bd6e0f-28e4-4954-b30b-5f7d995bee54/link_lists.bin


BIN
chroma/chroma.sqlite3


+ 44 - 0
run.spec

@@ -0,0 +1,44 @@
+# -*- mode: python ; coding: utf-8 -*-
+
+
+a = Analysis(
+    ['run.py'],
+    pathex=[],
+    binaries=[],
+    datas=[],
+    hiddenimports=[],
+    hookspath=[],
+    hooksconfig={},
+    runtime_hooks=[],
+    excludes=[],
+    noarchive=False,
+    optimize=0,
+)
+pyz = PYZ(a.pure)
+
+exe = EXE(
+    pyz,
+    a.scripts,
+    [],
+    exclude_binaries=True,
+    name='run',
+    debug=False,
+    bootloader_ignore_signals=False,
+    strip=False,
+    upx=True,
+    console=True,
+    disable_windowed_traceback=False,
+    argv_emulation=False,
+    target_arch=None,
+    codesign_identity=None,
+    entitlements_file=None,
+)
+coll = COLLECT(
+    exe,
+    a.binaries,
+    a.datas,
+    strip=False,
+    upx=True,
+    upx_exclude=[],
+    name='run',
+)

Some files were not shown because too many files changed in this diff