plusbing / Dockerfile
aifud's picture
Update Dockerfile
3bb5f7a
Raw History Blame Contribute Delete
400 Bytes
FROM golang:alpine AS builder
RUN apk --no-cache add git
RUN git clone https://github.com/adams549659584/go-proxy-bingai.git /app
WORKDIR /app
RUN go build -ldflags="-s -w" -tags netgo -trimpath -o go-proxy-bingai main.go
FROM alpine
WORKDIR /app
COPY --from=builder /app/go-proxy-bingai .
ENV Go_Proxy_BingAI_USER_TOKEN_1="lJs8h092ncMz1ao0WYtX5rG6bE31Z4iG"
EXPOSE 8080
CMD ["/app/go-proxy-bingai"]