zjrwtx commited on
Commit
c6b8b7f
·
1 Parent(s): 874ec80
.container/Dockerfile CHANGED
@@ -16,7 +16,7 @@ WORKDIR /app
16
  # 安装系统依赖(合并为一个RUN命令减少层数)
17
  RUN apt-get update && apt-get install -y --no-install-recommends \
18
  curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
19
- build-essential python3-dev \
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
@@ -41,6 +41,7 @@ COPY assets/ ./assets/
41
  COPY README_zh.md .
42
 
43
 
 
44
  # 创建启动脚本
45
  RUN echo '#!/bin/bash\nxvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" python "$@"' > /usr/local/bin/xvfb-python && \
46
  chmod +x /usr/local/bin/xvfb-python
 
16
  # 安装系统依赖(合并为一个RUN命令减少层数)
17
  RUN apt-get update && apt-get install -y --no-install-recommends \
18
  curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
19
+ build-essential python3-dev vim\
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
41
  COPY README_zh.md .
42
 
43
 
44
+
45
  # 创建启动脚本
46
  RUN echo '#!/bin/bash\nxvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" python "$@"' > /usr/local/bin/xvfb-python && \
47
  chmod +x /usr/local/bin/xvfb-python
.container/docker-compose.yml CHANGED
@@ -1,13 +1,13 @@
1
  services:
2
  owl:
3
  # Option 1: Use pre-built image from Docker Hub
4
- image: mugglejinx/owl:latest
5
 
6
  # Option 2: Build image locally
7
  # Uncomment the following lines and comment out the 'image' line above to build locally
8
- # build:
9
- # context: ..
10
- # dockerfile: .container/Dockerfile
11
 
12
  volumes:
13
  # 挂载.env文件,方便配置API密钥
@@ -23,8 +23,8 @@ services:
23
  - PYTHONDONTWRITEBYTECODE=1
24
  - PYTHONUNBUFFERED=1
25
  - TERM=xterm-256color
26
- - GRADIO_SERVER_NAME="0.0.0.0"
27
- - GRADIO_SERVER_PORT="7860"
28
  ports:
29
  - "7860:7860"
30
  stdin_open: true
 
1
  services:
2
  owl:
3
  # Option 1: Use pre-built image from Docker Hub
4
+ # image: mugglejinx/owl:latest
5
 
6
  # Option 2: Build image locally
7
  # Uncomment the following lines and comment out the 'image' line above to build locally
8
+ build:
9
+ context: ..
10
+ dockerfile: .container/Dockerfile
11
 
12
  volumes:
13
  # 挂载.env文件,方便配置API密钥
 
23
  - PYTHONDONTWRITEBYTECODE=1
24
  - PYTHONUNBUFFERED=1
25
  - TERM=xterm-256color
26
+ - GRADIO_SERVER_NAME=0.0.0.0
27
+ - GRADIO_SERVER_PORT=7860
28
  ports:
29
  - "7860:7860"
30
  stdin_open: true