File size: 667 Bytes
80f91b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]