Spaces:
Paused
Paused
debug: install curl in Dockerfile for self-test
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,9 @@ FROM eceasy/cli-proxy-api:latest
|
|
| 4 |
RUN mkdir -p /CLIProxyAPI/auth /CLIProxyAPI/logs && \
|
| 5 |
chmod -R 777 /CLIProxyAPI/auth /CLIProxyAPI/logs
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# 复制配置文件和启动脚本
|
| 8 |
COPY config.yaml /CLIProxyAPI/config.yaml
|
| 9 |
COPY entrypoint.sh /CLIProxyAPI/entrypoint.sh
|
|
|
|
| 4 |
RUN mkdir -p /CLIProxyAPI/auth /CLIProxyAPI/logs && \
|
| 5 |
chmod -R 777 /CLIProxyAPI/auth /CLIProxyAPI/logs
|
| 6 |
|
| 7 |
+
# 安装 curl 用于自测 (尝试 apk 和 apt-get)
|
| 8 |
+
RUN (apk add --no-cache curl || (apt-get update && apt-get install -y curl)) 2>/dev/null || echo "Failed to install curl"
|
| 9 |
+
|
| 10 |
# 复制配置文件和启动脚本
|
| 11 |
COPY config.yaml /CLIProxyAPI/config.yaml
|
| 12 |
COPY entrypoint.sh /CLIProxyAPI/entrypoint.sh
|