Spaces:
Running
Running
FROM golang:alpine AS builder | |
RUN apk update | |
RUN apk add git | |
WORKDIR /app | |
RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git | |
WORKDIR /app/go-proxy-bingai | |
RUN go build -ldflags="-s -w" -tags netgo -trimpath -o go-proxy-bingai main.go | |
FROM alpine | |
WORKDIR /app/go-proxy-bingai | |
COPY --from=builder /app/go-proxy-bingai . | |
EXPOSE 8080 | |
CMD ["/app/go-proxy-bingai/go-proxy-bingai"] |