|
|
|
|
|
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="1QBLeWDN2-9oxQYRvGRMVbB1k2NbXYdRz7-SyvZ_sn9H7rqX465lwDveExWhX24N1m0oug3wKKYljd4lXHl7hO0Ktf295thHx8JkHmE1Yj1JFf8KiNeUf-c4oJcZMaF35jgf-QaRfXFCNiAr1g_WqhFgSQV1omcFpXGYhss3sXe99V248nxxS0bVdJ7pstpO9EpS_0QdtOEDBicf-JCJ89oQIRPKVeeRboO8afvwkGTY" |
|
|
|
|
|
EXPOSE 8080 |
|
|
|
|
|
CMD ["/workspace/app/go-proxy-bingai"] |