mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-18 18:04:20 +00:00
Upstream changes: - feat: add Google One login and improve Gemini CLI auto-discovery - feat: add gpt-5.3-codex-spark model definition - feat: add 'kimi' channel support in model definitions - feat: pass cache usage from codex to openai chat completions - fix: normalize Gemini credential file prefix for consistency - refactor: replace manual pointer assignments with new() - chore: update Go to 1.26, update Codex client version Fork fixes: - Bump mise Go pin to 1.26.0 - Remove stale .syso resource files (incompatible with Go 1.26 linker)
36 lines
713 B
Docker
36 lines
713 B
Docker
FROM golang:1.26-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
ARG VERSION=dev
|
|
ARG COMMIT=none
|
|
ARG BUILD_DATE=unknown
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.Version=${VERSION}-plus' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" -o ./CLIProxyAPIPlus ./cmd/server/
|
|
|
|
FROM alpine:3.22.0
|
|
|
|
RUN apk add --no-cache tzdata
|
|
|
|
RUN mkdir /ProxyPilot
|
|
|
|
COPY --from=builder ./app/CLIProxyAPIPlus /CLIProxyAPI/CLIProxyAPIPlus
|
|
|
|
COPY config.example.yaml /ProxyPilot/config.example.yaml
|
|
|
|
WORKDIR /ProxyPilot
|
|
|
|
EXPOSE 8317
|
|
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone
|
|
|
|
CMD ["./CLIProxyAPIPlus"]
|