FROM golang:1.19.4-alpine3.16 AS Builder ENV GOPROXY=https://goproxy.cn WORKDIR /app COPY . . RUN go mod download -x RUN GOOS=linux GOARCH=amd64 go build -o webhook FROM alpine:3.16 LABEL maintainer "soulteary " COPY --from=builder /app/webhook /bin/ CMD webhook