|
|
|
|
|
FROM golang:alpine AS builder |
|
|
|
|
|
RUN apk --no-cache add git |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN git clone https://github.com/SokWith/go-bingai.git /workspace/app |
|
|
|
|
|
|
|
WORKDIR /workspace/app |
|
|
|
|
|
RUN go build -ldflags="-s -w" -tags netgo -trimpath -o go-proxy-bingai main.go |
|
|
|
|
|
|
|
FROM alpine |
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /workspace/app |
|
|
|
|
|
COPY --from=builder /workspace/app/go-proxy-bingai . |
|
|
|
|
|
ENV Go_Proxy_BingAI_USER_TOKEN_1="FABaBBRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACLBe4exBalgMGAS0eyOPsRdwaa3O6N6uzmVuHJqj+7zY0hXXWQmpnJFAlsuSXG8s1qrXzab/M4zqVmKQNMaR5hjarJkms3cabNAGu/ohYrWKb22M483I7ozuj7NX7zEsTG+Ohd0m5+pA4rBPulBG0Fk5hitrpgnzJsymXW8kJLINHOmAFUCEL1tBRyhPHKoFd3bdEnGpS5qhQtECN/maah6eg/DSxVgympcElxYtSiRfIpNkuaQ8d8QdAiEGvolMwso2J9cvlonOd8olzsBtOpkahKTg/+PgiqGPLttJGUtJNIVq8HzT3czLh+x7xmBpYHySHJrajgUM+huXlFSC1GSKSoLDkneWQ8mnL+aSTK9hzDUv+VJiRFWfdL6BNvL+sKyZ6IU0+XshU0G72UJxtLxxye60Mv+f7ckLflQAE9U2kMb2qlLl0WCkGQV7WT7ntZSKXBEI0fWdDcvORKUnjBEj2U9VzB0VAf4C1iRqmtKTJFIbQ6sB296gjOfDuvoFfOv00trdvDET9/WhjMglnO+dQ1m64jGM0A1hljPxPQcfWbIZaGe6uhis2E7nW6r8k5+Vbv/88xiuX2Pc0pS7zCTGLcd8vlRm0WpFaD0ExgIH4XlV+cfGx1eperT5+LQEfr7jy00LhVYk1u8EGHSCT5XGK1OesEPKeuKaBebwI2P3yqCFiLJSZXNhH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