bing-proxy / Dockerfile
captray's picture
Create Dockerfile
9ca7a6c
raw
history blame contribute delete
392 Bytes
FROM golang:alpine AS builder
RUN apk update
RUN apk add git
WORKDIR /app
RUN git clone https://github.com/adams549659584/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"]