deploy: ENABLE_CLEANUP flag (default off), minimal footprint
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -9,10 +9,14 @@ RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api
|
|
| 9 |
RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /tmp/pg_cache/pgstore && chmod -R 777 /tmp
|
| 10 |
|
| 11 |
COPY config.yaml /app/config.yaml
|
|
|
|
|
|
|
|
|
|
| 12 |
# 修复 config.example.yaml 缺失
|
| 13 |
RUN cp /app/config.yaml /app/config.example.yaml
|
|
|
|
| 14 |
|
| 15 |
ENV TZ=Asia/Shanghai
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
-
CMD ["
|
|
|
|
| 9 |
RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /tmp/pg_cache/pgstore && chmod -R 777 /tmp
|
| 10 |
|
| 11 |
COPY config.yaml /app/config.yaml
|
| 12 |
+
COPY cleanup_tokens.sh /app/cleanup_tokens.sh
|
| 13 |
+
COPY entrypoint.sh /app/entrypoint.sh
|
| 14 |
+
|
| 15 |
# 修复 config.example.yaml 缺失
|
| 16 |
RUN cp /app/config.yaml /app/config.example.yaml
|
| 17 |
+
RUN chmod +x /app/cleanup_tokens.sh /app/entrypoint.sh
|
| 18 |
|
| 19 |
ENV TZ=Asia/Shanghai
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
+
CMD ["/app/entrypoint.sh"]
|