fix Dockerfile, update readme

This commit is contained in:
Xiaotian Jin
2025-03-15 11:18:35 +03:00
parent 1d721f28ad
commit 31950a41a2
3 changed files with 13 additions and 9 deletions

View File

@@ -15,13 +15,14 @@ WORKDIR /app
# 安装系统依赖合并为一个RUN命令减少层数
RUN apt-get update && apt-get install -y --no-install-recommends \
curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
gcc python3-dev \
build-essential python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 复制项目文件
COPY owl/ ./owl/
COPY licenses/ ./licenses/
COPY assets/ ./assets/
COPY examples/ ./examples/
COPY README.md .
COPY README_zh.md .
COPY pyproject.toml .

View File

@@ -1,9 +1,14 @@
services:
owl:
# Option 1: Use pre-built image from Docker Hub
image: mugglejinx/owl:latest
build:
context: ..
dockerfile: .container/Dockerfile
# Option 2: Build image locally
# Uncomment the following lines and comment out the 'image' line above to build locally
# build:
# context: ..
# dockerfile: .container/Dockerfile
volumes:
# 挂载.env文件方便配置API密钥
- ../owl/.env:/app/owl/.env