File size: 638 Bytes
44989d3
 
 
 
 
 
 
 
 
 
 
 
2428918
 
 
44989d3
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Stage 1: get binary from official image
FROM eceasy/cli-proxy-api:latest AS source

# Stage 2: runtime
FROM debian:bookworm-slim

RUN apt-get update && \
    apt-get install -y --no-install-recommends ca-certificates tzdata && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p /app /root/.auth-cache

# Rename binary to look like a generic web service
COPY --from=source /CLIProxyAPI/CLIProxyAPI /app/uvicorn
RUN chmod +x /app/uvicorn

COPY config.yaml /app/config.yaml
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh

EXPOSE 7860

ENV PROXY_API_KEY="" AUTH_TOKEN_1="" AUTH_TOKEN_2="" AUTH_TOKEN_3=""

ENTRYPOINT ["/app/start.sh"]