forked from rh-ecosystem-edge/kernel-module-management
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.webhook
More file actions
32 lines (23 loc) · 712 Bytes
/
Dockerfile.webhook
File metadata and controls
32 lines (23 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Build the manager binary
FROM golang:1.25 as builder
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# Add the vendored dependencies
COPY vendor vendor
# Copy the go source
COPY api api
COPY api-hub api-hub
COPY cmd/webhook-server cmd/webhook-server
COPY docs.mk docs.mk
COPY internal internal
# Copy Makefile
COPY Makefile Makefile
# Copy the .git directory which is needed to store the build info
COPY .git .git
# Build
RUN git config --global --add safe.directory ${PWD}
RUN CGO_ENABLED=0 make webhook-server
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
COPY --from=builder /go/webhook-server /usr/local/bin/webhook-server
ENTRYPOINT ["/usr/local/bin/webhook-server"]