We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2811627 commit 1fde439Copy full SHA for 1fde439
cmd/fluent-manager/Dockerfile
@@ -12,14 +12,14 @@ COPY go.sum go.sum
12
RUN go mod download
13
14
# Copy the go source
15
-COPY cmd/fluent-manager/main.go main.go
+COPY cmd/fluent-manager/*.go ./
16
COPY apis apis/
17
COPY controllers controllers/
18
COPY pkg pkg/
19
20
ARG TARGETOS
21
ARG TARGETARCH
22
-RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o manager main.go
+RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o manager .
23
24
# Use distroless as minimal base image to package the manager binary
25
# Refer to https://github.com/GoogleContainerTools/distroless for more details
0 commit comments