Skip to content

Commit 5940fb2

Browse files
authored
Merge pull request feast-dev#335 from red-hat-data-services/fix/operator-dockerfile-copy-cmd
fix: Copy entire cmd/ directory in operator Konflux Dockerfile
2 parents bcbe546 + e2f7d62 commit 5940fb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Dockerfiles/Dockerfile.feast-operator.konflux‎

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

1313
# Copy the go source
14-
COPY cmd/main.go cmd/main.go
14+
COPY cmd/ cmd/
1515
COPY api/ api/
1616
COPY internal/controller/ internal/controller/
1717

@@ -20,7 +20,7 @@ COPY internal/controller/ internal/controller/
2020
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
2121
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
2222
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
23-
RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -a -o manager cmd/main.go
23+
RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -a -o manager ./cmd/
2424

2525
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:e1c4703364c5cb58f5462575dc90345bcd934ddc45e6c32f9c162f2b5617681c
2626
WORKDIR /

0 commit comments

Comments
 (0)