diff --git a/build/controller/Dockerfile b/build/controller/Dockerfile index 8e5cc8689..5ee7ea47b 100644 --- a/build/controller/Dockerfile +++ b/build/controller/Dockerfile @@ -22,8 +22,8 @@ RUN make build-controller GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGET FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE -WORKDIR / +WORKDIR /bin COPY --from=builder /workspace/bin/controller . USER 65532:65532 -ENTRYPOINT ["/controller"] +ENTRYPOINT ["/bin/controller"] diff --git a/build/scheduler/Dockerfile b/build/scheduler/Dockerfile index 1ad0943b5..131d27d2e 100644 --- a/build/scheduler/Dockerfile +++ b/build/scheduler/Dockerfile @@ -22,8 +22,8 @@ RUN make build-scheduler GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETA FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE -WORKDIR / +WORKDIR /bin COPY --from=builder /workspace/bin/kube-scheduler . USER 65532:65532 -ENTRYPOINT ["/kube-scheduler"] +ENTRYPOINT ["/bin/kube-scheduler"] diff --git a/manifests/appgroup/deploy-appgroup-controller.yaml b/manifests/appgroup/deploy-appgroup-controller.yaml index 1b8a27289..c80e0c7be 100644 --- a/manifests/appgroup/deploy-appgroup-controller.yaml +++ b/manifests/appgroup/deploy-appgroup-controller.yaml @@ -60,6 +60,4 @@ spec: containers: - name: appgroup-controller image: localhost:5000/appgroup-controller/controller:latest - command: - - /bin/controller - imagePullPolicy: IfNotPresent \ No newline at end of file + imagePullPolicy: IfNotPresent diff --git a/manifests/networktopology/deploy-networktopology-controller.yaml b/manifests/networktopology/deploy-networktopology-controller.yaml index e438bbb4c..7cb7872d1 100644 --- a/manifests/networktopology/deploy-networktopology-controller.yaml +++ b/manifests/networktopology/deploy-networktopology-controller.yaml @@ -69,6 +69,4 @@ spec: containers: - name: networktopology-controller image: localhost:5000/networktopology-controller/controller:latest - command: - - /bin/controller - imagePullPolicy: IfNotPresent \ No newline at end of file + imagePullPolicy: IfNotPresent