mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 14:07:17 +08:00
fix env
This commit is contained in:
@@ -93,10 +93,10 @@ WORKDIR /app/owl
|
||||
# 设置适当的权限
|
||||
RUN chown -R owl:owl /app
|
||||
RUN mkdir -p /root/.cache && chown -R owl:owl /root/.cache
|
||||
RUN chmod 644 /app/owl/.env
|
||||
|
||||
# 切换到非root用户
|
||||
# 注意:如果需要访问/dev/shm,可能仍需要root用户
|
||||
# USER owl
|
||||
|
||||
USER owl
|
||||
|
||||
# 添加健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
- python:3.10-slim
|
||||
volumes:
|
||||
# 挂载.env文件,方便配置API密钥
|
||||
- ./owl/.env:/app/owl/.env
|
||||
- ../owl/.env:/app/owl/.env
|
||||
# 可选:挂载数据目录
|
||||
- ./data:/app/data
|
||||
# 挂载缓存目录,避免重复下载
|
||||
|
||||
Reference in New Issue
Block a user