FROM debian:bookworm-slim WORKDIR /app RUN apt-get update && \ apt-get install -y wget ca-certificates && \ rm -rf /var/lib/apt/lists/* # Download latest CLI Proxy API RUN 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 files COPY config.yaml /app/config.yaml COPY auths /app/auths EXPOSE 7860 CMD ["./cli-proxy-api", "-config", "config.yaml"]