Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -15,10 +15,12 @@ COPY ./config.yaml /app/config.yaml
|
|
| 15 |
# 安装 requests(同步脚本依赖)
|
| 16 |
RUN pip install requests --no-cache-dir
|
| 17 |
|
| 18 |
-
# 复制同步脚本
|
| 19 |
COPY ./sync_cliproxy_cleanup.py /app/sync_cliproxy_cleanup.py
|
|
|
|
|
|
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
-
# 启动
|
| 24 |
-
|
|
|
|
| 15 |
# 安装 requests(同步脚本依赖)
|
| 16 |
RUN pip install requests --no-cache-dir
|
| 17 |
|
| 18 |
+
# 复制同步脚本和启动脚本
|
| 19 |
COPY ./sync_cliproxy_cleanup.py /app/sync_cliproxy_cleanup.py
|
| 20 |
+
COPY ./start.sh /app/start.sh
|
| 21 |
+
RUN chmod +x /app/start.sh
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# 使用启动脚本作为容器入口
|
| 26 |
+
ENTRYPOINT ["/app/start.sh"]
|