huanbao commited on
Commit
c98a8f2
·
verified ·
1 Parent(s): 32b56d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -3,11 +3,6 @@ FROM node:22-bookworm-slim
3
  ENV PIP_BREAK_SYSTEM_PACKAGES=1
4
 
5
  # 1. 安装基础依赖
6
- # 修复说明(依据 readme.md 实测结论):
7
- # - 不安装 bubblewrap,也不再注入 bwrap 假 shim:hfspace seccomp 拦截 CLONE_NEWUSER 且容器内无 bwrap,
8
- # 任何沙箱路径必然失败;实测有效解法是 Codex 配置顶层 sandbox_mode="danger-full-access" +
9
- # approval_policy="never"(由 entrypoint.sh 每次启动生成),Codex 从此完全跳过沙箱路径,
10
- # 假 shim 属冗余方案且存在误执行风险,已移除
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  python3 \
13
  python3-pip \
@@ -50,7 +45,7 @@ ENV HOST=0.0.0.0
50
  ENV PORT=7860
51
  ENV SERVER_PORT=7860
52
 
53
- WORKDIR /data/app
54
  EXPOSE 7860
55
 
56
  ENTRYPOINT ["/entrypoint.sh"]
 
3
  ENV PIP_BREAK_SYSTEM_PACKAGES=1
4
 
5
  # 1. 安装基础依赖
 
 
 
 
 
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  python3 \
8
  python3-pip \
 
45
  ENV PORT=7860
46
  ENV SERVER_PORT=7860
47
 
48
+ WORKDIR /home/node/app
49
  EXPOSE 7860
50
 
51
  ENTRYPOINT ["/entrypoint.sh"]