mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 13:41:03 +00:00
11 lines
No EOL
284 B
Text
11 lines
No EOL
284 B
Text
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 <soulteary@gmail.com>"
|
|
COPY --from=builder /app/webhook /bin/
|
|
CMD webhook |