File size: 600 Bytes
0051a6e
 
 
 
673f595
0051a6e
 
 
a15febc
0051a6e
 
3672af1
 
 
492f303
a15febc
3672af1
f16f1ce
0051a6e
 
 
3672af1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM eceasy/cli-proxy-api:latest

USER root

RUN apk add --no-cache bash libc6-compat gcompat jq curl

WORKDIR /app
RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api
RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /tmp/pg_cache/pgstore && chmod -R 777 /tmp

COPY config.yaml /app/config.yaml
COPY cleanup_tokens.sh /app/cleanup_tokens.sh
COPY entrypoint.sh /app/entrypoint.sh

# 修复 config.example.yaml 缺失
RUN cp /app/config.yaml /app/config.example.yaml
RUN chmod +x /app/cleanup_tokens.sh /app/entrypoint.sh

ENV TZ=Asia/Shanghai
EXPOSE 7860

CMD ["/app/entrypoint.sh"]