mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
add vim
This commit is contained in:
@@ -16,7 +16,7 @@ WORKDIR /app
|
|||||||
# 安装系统依赖(合并为一个RUN命令减少层数)
|
# 安装系统依赖(合并为一个RUN命令减少层数)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
|
curl git ffmpeg libsm6 libxext6 xvfb xauth x11-utils \
|
||||||
build-essential python3-dev \
|
build-essential python3-dev vim\
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -41,6 +41,7 @@ COPY assets/ ./assets/
|
|||||||
COPY README_zh.md .
|
COPY README_zh.md .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 创建启动脚本
|
# 创建启动脚本
|
||||||
RUN echo '#!/bin/bash\nxvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" python "$@"' > /usr/local/bin/xvfb-python && \
|
RUN echo '#!/bin/bash\nxvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" python "$@"' > /usr/local/bin/xvfb-python && \
|
||||||
chmod +x /usr/local/bin/xvfb-python
|
chmod +x /usr/local/bin/xvfb-python
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
services:
|
services:
|
||||||
owl:
|
owl:
|
||||||
# Option 1: Use pre-built image from Docker Hub
|
# Option 1: Use pre-built image from Docker Hub
|
||||||
image: mugglejinx/owl:latest
|
# image: mugglejinx/owl:latest
|
||||||
|
|
||||||
# Option 2: Build image locally
|
# Option 2: Build image locally
|
||||||
# Uncomment the following lines and comment out the 'image' line above to build locally
|
# Uncomment the following lines and comment out the 'image' line above to build locally
|
||||||
# build:
|
build:
|
||||||
# context: ..
|
context: ..
|
||||||
# dockerfile: .container/Dockerfile
|
dockerfile: .container/Dockerfile
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# 挂载.env文件,方便配置API密钥
|
# 挂载.env文件,方便配置API密钥
|
||||||
@@ -23,8 +23,8 @@ services:
|
|||||||
- PYTHONDONTWRITEBYTECODE=1
|
- PYTHONDONTWRITEBYTECODE=1
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
- TERM=xterm-256color
|
- TERM=xterm-256color
|
||||||
- GRADIO_SERVER_NAME="0.0.0.0"
|
- GRADIO_SERVER_NAME=0.0.0.0
|
||||||
- GRADIO_SERVER_PORT="7860"
|
- GRADIO_SERVER_PORT=7860
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
|
|||||||
Reference in New Issue
Block a user