Spaces:
Paused
Paused
Delete Dockerfile with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl tzdata && \ rm -rf /var/lib/apt/lists/*
WORKDIR /CLIProxyAPI
# Download and extract CLIProxyAPI release binaryARG CLI_VERSION=7.2.73RUN curl -sL "https://github.com/router-for-me/CLIProxyAPI/releases/download/v${CLI_VERSION}/CLIProxyAPI_${CLI_VERSION}_linux_amd64.tar.gz" | tar xz && \ chmod +x ./cli-proxy-api
# Download management panel during build (GitHub accessible at build time, not at HF runtime)# Store in a build-time location; the entrypoint script will copy it to /tmp at runtimeARG PANEL_VERSION=v1.17.10RUN mkdir -p /CLIProxyAPI/panel-assets && \ curl -sL "https://github.com/router-for-me/Cli-Proxy-API-Management-Center/releases/download/${PANEL_VERSION}/management.html" \ -o /CLIProxyAPI/panel-assets/management.html
# Replace default configs with HF-optimized version# config.example.yaml is used as PG bootstrap template on first runCOPY config.yaml /CLIProxyAPI/config.yamlCOPY config.yaml /CLIProxyAPI/config.example.yaml
# Create persistent data directory for HF SpaceRUN mkdir -p /data/auths
EXPOSE 7860
# HF Space root filesystem is read-only; /tmp is writableENV MANAGEMENT_STATIC_PATH=/tmpENV PGSTORE_LOCAL_PATH=/tmp
# Entrypoint: copy pre-downloaded panel to writable /tmp, then start the serverCOPY entrypoint.sh /CLIProxyAPI/entrypoint.shRUN chmod +x /CLIProxyAPI/entrypoint.sh
ENV TZ=Asia/ShanghaiRUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone
CMD ["./entrypoint.sh"]DockerfileDeleted-42