bingai / Dockerfile
wurenzhiwen's picture
Create Dockerfile
46fbf22
raw
history blame contribute delete
390 Bytes
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"]