mirror of
https://github.com/adams549659584/go-proxy-bingai.git
synced 2025-06-03 15:02:30 +08:00
11 lines
241 B
Docker
11 lines
241 B
Docker
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"] |