Skip to content

Commit 1fde439

Browse files
authored
Build all go files. (#1784)
Signed-off-by: Josh Baird <[email protected]>
1 parent 2811627 commit 1fde439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/fluent-manager/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ COPY go.sum go.sum
1212
RUN go mod download
1313

1414
# Copy the go source
15-
COPY cmd/fluent-manager/main.go main.go
15+
COPY cmd/fluent-manager/*.go ./
1616
COPY apis apis/
1717
COPY controllers controllers/
1818
COPY pkg pkg/
1919

2020
ARG TARGETOS
2121
ARG TARGETARCH
22-
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o manager main.go
22+
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o manager .
2323

2424
# Use distroless as minimal base image to package the manager binary
2525
# Refer to https://github.com/GoogleContainerTools/distroless for more details

0 commit comments

Comments
 (0)