From 6280fb3923766febd6a997f5a0fbabb9059e720c Mon Sep 17 00:00:00 2001 From: "yifeng.wang" <3038880699@qq.com> Date: Fri, 14 Mar 2025 20:49:05 +0800 Subject: [PATCH] update dockerfiles --- .container/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.container/Dockerfile b/.container/Dockerfile index af08c65..7054876 100644 --- a/.container/Dockerfile +++ b/.container/Dockerfile @@ -18,8 +18,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gcc python3-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* - +# 复制项目文件 +COPY owl/ ./owl/ +COPY licenses/ ./licenses/ +COPY assets/ ./assets/ +COPY README.md . +COPY README_zh.md . COPY pyproject.toml . + # 创建README.md文件以避免构建错误 RUN echo "# OWL Project\n\n这是OWL项目的Docker环境。" > README.md # 安装uv工具 @@ -31,12 +37,7 @@ RUN uv venv .venv --python=3.10 && \ uv pip install -e . -# 复制项目文件 -COPY owl/ ./owl/ -COPY licenses/ ./licenses/ -COPY assets/ ./assets/ -COPY README.md . -COPY README_zh.md . + # 创建启动脚本 RUN echo '#!/bin/bash\nxvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" python "$@"' > /usr/local/bin/xvfb-python && \