Spaces:
Paused
Paused
Delete Dockerfile with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233FROM 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)ARG PANEL_VERSION=v1.17.10RUN mkdir -p /CLIProxyAPI/static && \ curl -sL "https://github.com/router-for-me/Cli-Proxy-API-Management-Center/releases/download/${PANEL_VERSION}/management.html" \ -o /CLIProxyAPI/static/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
ENV TZ=Asia/ShanghaiRUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone
CMD ["./cli-proxy-api"]DockerfileDeleted-33