cacode commited on
Commit
36c43ae
·
verified ·
1 Parent(s): 3dee6de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -8
Dockerfile CHANGED
@@ -6,24 +6,27 @@ RUN apt-get update \
6
  && apt-get install -y --no-install-recommends ca-certificates \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
- # === 1. 安装 jaraco 到 /app/vendor 目录 ===
10
  RUN pip install --no-cache-dir \
11
  jaraco.functools \
12
  jaraco.text \
13
  jaraco.collections \
14
- -t /app/vendor
15
 
16
- # === 2. 复制 .env你已有===
 
 
 
 
 
 
17
  COPY .env /app/.env
18
 
19
- # === 3. 复制可执行程序并赋权 ===
20
  COPY aigc-bypasser /app/app
21
  RUN chmod +x /app/app
22
 
23
- # === 4. 把 vendor 中的包复制到当前目录,使其成为模块源 ===
24
- RUN cp -r /app/vendor/* /app/
25
-
26
- # === 5. 入口脚本 ===
27
  COPY entrypoint.sh /app/entrypoint.sh
28
  RUN chmod +x /app/entrypoint.sh
29
 
 
6
  && apt-get install -y --no-install-recommends ca-certificates \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ # 1️⃣ jaraco 安装到 /tmp/vendor
10
  RUN pip install --no-cache-dir \
11
  jaraco.functools \
12
  jaraco.text \
13
  jaraco.collections \
14
+ -t /tmp/vendor
15
 
16
+ # 2️⃣ 明确把 vendor 内容复制 /app注意 *
17
+ RUN cp -r /tmp/vendor/* /app/
18
+
19
+ # 3️⃣ 检查:此目录必须包含 jaraco/
20
+ RUN ls -R /app
21
+
22
+ # 4️⃣ 复制 .env
23
  COPY .env /app/.env
24
 
25
+ # 5️⃣ 复制你的可执行文件(名称按你的来)
26
  COPY aigc-bypasser /app/app
27
  RUN chmod +x /app/app
28
 
29
+ # 6️⃣ 复制入口脚本
 
 
 
30
  COPY entrypoint.sh /app/entrypoint.sh
31
  RUN chmod +x /app/entrypoint.sh
32