上传文件: Dockerfile、 config.yaml
Browse files- Dockerfile +22 -0
- config.yaml +25 -0
Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:bookworm-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && \
|
| 6 |
+
apt-get install -y wget ca-certificates && \
|
| 7 |
+
rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
+
# Download latest CLI Proxy API
|
| 10 |
+
RUN wget -q https://github.com/router-for-me/CLIProxyAPI/releases/download/v6.8.17/CLIProxyAPI_6.8.17_linux_amd64.tar.gz && \
|
| 11 |
+
tar -xzf CLIProxyAPI_6.8.17_linux_amd64.tar.gz && \
|
| 12 |
+
mv CLIProxyAPI_6.8.17_linux_amd64/cli-proxy-api . && \
|
| 13 |
+
rm -rf CLIProxyAPI_6.8.17_linux_amd64* && \
|
| 14 |
+
chmod +x cli-proxy-api
|
| 15 |
+
|
| 16 |
+
# Copy config and auth files
|
| 17 |
+
COPY config.yaml /app/config.yaml
|
| 18 |
+
COPY auths /app/auths
|
| 19 |
+
|
| 20 |
+
EXPOSE 7860
|
| 21 |
+
|
| 22 |
+
CMD ["./cli-proxy-api", "-config", "config.yaml"]
|
config.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
host: "0.0.0.0"
|
| 2 |
+
port: 7860
|
| 3 |
+
|
| 4 |
+
remote-management:
|
| 5 |
+
allow-remote: true
|
| 6 |
+
secret-key: "2025@eeddcc11"
|
| 7 |
+
disable-control-panel: false
|
| 8 |
+
panel-github-repository: "https://github.com/router-for-me/Cli-Proxy-API-Management-Center"
|
| 9 |
+
|
| 10 |
+
auth-dir: "/app/auths"
|
| 11 |
+
|
| 12 |
+
api-keys:
|
| 13 |
+
- "sk-cliproxy-key1-change-me"
|
| 14 |
+
- "sk-cliproxy-key2-change-me"
|
| 15 |
+
|
| 16 |
+
debug: false
|
| 17 |
+
request-retry: 3
|
| 18 |
+
max-retry-interval: 30
|
| 19 |
+
|
| 20 |
+
quota-exceeded:
|
| 21 |
+
switch-project: true
|
| 22 |
+
switch-preview-model: true
|
| 23 |
+
|
| 24 |
+
routing:
|
| 25 |
+
strategy: "round-robin"
|