Spaces:
Runtime error
Runtime error
更新下载最新版本
Browse files12345678910111213141516171819202122FROM debian:bookworm-slimWORKDIR /appRUN apt-get update && \apt-get install -y wget ca-certificates && \rm -rf /var/lib/apt/lists/*# Download latest CLI Proxy APIRUN wget -q https://github.com/router-for-me/CLIProxyAPI/releases/download/v6.8.17/CLIProxyAPI_6.8.17_linux_amd64.tar.gz && \tar -xzf CLIProxyAPI_6.8.17_linux_amd64.tar.gz && \mv CLIProxyAPI_6.8.17_linux_amd64/cli-proxy-api . && \rm -rf CLIProxyAPI_6.8.17_linux_amd64* && \chmod +x cli-proxy-api# Copy config and auth filesCOPY config.yaml /app/config.yamlCOPY auths /app/authsEXPOSE 7860CMD ["./cli-proxy-api", "-config", "config.yaml"]123456789101112131415161718192021222324FROM debian:bookworm-slimWORKDIR /appRUN apt-get update && \apt-get install -y wget ca-certificates curl jq && \rm -rf /var/lib/apt/lists/*# Download latest CLI Proxy API for LinuxRUN LATEST_URL=$(curl -s https://api.github.com/repos/router-for-me/CLIProxyAPI/releases/latest | jq -r '.assets[] | select(.name | test("linux.*amd64.*tar.gz")) | .browser_download_url') && \echo "Downloading: $LATEST_URL" && \wget -q "$LATEST_URL" -O cli-proxy-api.tar.gz && \tar -xzf cli-proxy-api.tar.gz && \find . -name "cli-proxy-api" -type f -exec mv {} /app/cli-proxy-api \; && \rm -rf cli-proxy-api.tar.gz CLIProxyAPI* && \chmod +x /app/cli-proxy-api# Copy config and auth filesCOPY config.yaml /app/config.yamlCOPY auths /app/authsEXPOSE 7860CMD ["./cli-proxy-api", "-config", "config.yaml"]
Dockerfile+24-22