We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6411d31 commit 5a7e929Copy full SHA for 5a7e929
.dockerignore
@@ -0,0 +1,6 @@
1
+*
2
+!go.mod
3
+!go.sum
4
+!*.go
5
+!Makefile
6
+!internal/*
Dockerfile
@@ -0,0 +1,8 @@
+FROM golang:1.14 AS builder
+WORKDIR /go/src/github.com/adnanh/webhook/
+COPY . ./
+RUN make CGO_ENABLED=0 LDFLAGS="-w -s" build
+
+FROM scratch
7
+COPY --from=builder /go/src/github.com/adnanh/webhook/webhook /bin/
8
+ENTRYPOINT ["/bin/webhook"]
0 commit comments