Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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 |
-
#
|
| 10 |
RUN pip install --no-cache-dir \
|
| 11 |
jaraco.functools \
|
| 12 |
jaraco.text \
|
| 13 |
jaraco.collections \
|
| 14 |
-
-t /
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
COPY .env /app/.env
|
| 18 |
|
| 19 |
-
#
|
| 20 |
COPY aigc-bypasser /app/app
|
| 21 |
RUN chmod +x /app/app
|
| 22 |
|
| 23 |
-
#
|
| 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 |
|