mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 05:31:03 +00:00
12 lines
No EOL
320 B
Text
12 lines
No EOL
320 B
Text
FROM golang:1.19.4-alpine3.16 AS Builder
|
|
ENV GOPROXY=https://goproxy.cn
|
|
ENV CGO_ENABLED=0
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go mod download -x
|
|
RUN GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o webhook
|
|
|
|
FROM alpine:3.16
|
|
LABEL maintainer "soulteary <soulteary@gmail.com>"
|
|
COPY --from=builder /app/webhook /bin/
|
|
CMD webhook |