mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 05:31:03 +00:00
The Dockerfile produces a scratch image with a statically linked binary without debug flag.
8 lines
236 B
Docker
8 lines
236 B
Docker
FROM golang:1.15 AS builder
|
|
WORKDIR /go/src/github.com/adnanh/webhook/
|
|
COPY . ./
|
|
RUN make CGO_ENABLED=0 LDFLAGS="-w -s" build
|
|
|
|
FROM scratch
|
|
COPY --from=builder /go/src/github.com/adnanh/webhook/webhook /bin/
|
|
ENTRYPOINT ["/bin/webhook"]
|