File size: 241 Bytes
d669ddb
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
FROM golang:alpine AS builder
WORKDIR /app
COPY . .
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 .

EXPOSE 8080
CMD ["/app/go-proxy-bingai"]