|
|
|
|
|
FROM golang:alpine AS builder |
|
|
|
|
|
RUN apk --no-cache add git |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN git clone https://github.com/Harry-zklcdc/go-proxy-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="U1AxfrbR9o29vqv65cCzXYkdUOC_Sl88ZBdcQt_C465lIhdp_aCQGBXMjDhJq_qLwKq-vpheLvUzDxQhhP4cJtK5yAudrlKlac1S2L7s163wdUXxHJ_1seXPAYWdekgdlbxC6-EyJJW5CYRmJ3XCroI74g7a5bZDgYZ8mIA5x2nCxKgu4xjTuO54LN_-0Zp0l6jzrHhT1qWCndX882iGfL9lMgCiunnOSFcdwSSGfK4lI" |
|
|
|
ENV USER_MUID="XX074AD7F106536BC6392FC4C907CA6AE1" |
|
|
|
|
|
EXPOSE 8080 |
|
|
|
|
|
CMD ["/workspace/app/go-proxy-bingai"] |
|
|
|
|