From 60b7f5f4cf26f79e7f0ceb785462d9fb9df0c7f5 Mon Sep 17 00:00:00 2001 From: zhangsan <646228430@qq.com> Date: Tue, 18 Mar 2025 19:18:47 +0800 Subject: [PATCH] 3.18 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3302bb5..4806000 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,8 @@ RUN pip install --no-cache-dir -r requirements.txt # 复制整个项目到容器内 COPY . . +# 设置 PYTHONPATH,使得 Python 能在 /markdown_operation 中查找模块 +ENV PYTHONPATH="/markdown_operation" + # 设置容器启动时运行的命令,比如运行 main.py CMD ["/bin/bash"]