diff --git a/Dockerfile.dev b/Dockerfile.dev index 643a5a4eec..a86d09ed6b 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -2,5 +2,5 @@ # argo-rollouts-dev #################################################################################################### FROM scratch -COPY dist/rollouts-controller-linux-amd64 /bin/rollouts-controller +COPY rollouts-controller-linux-amd64 /bin/rollouts-controller ENTRYPOINT [ "/bin/rollouts-controller" ] diff --git a/Makefile b/Makefile index f9a959e9cb..d0c77f7f83 100644 --- a/Makefile +++ b/Makefile @@ -210,7 +210,7 @@ builder-image: image: ifeq ($(DEV_IMAGE), true) CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/rollouts-controller-linux-amd64 ./cmd/rollouts-controller - docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev . + docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev ${DIST_DIR} else docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) . endif @@ -282,4 +282,4 @@ release-plugins: ./hack/build-release-plugins.sh .PHONY: release -release: release-precheck precheckin image plugin-image release-plugins \ No newline at end of file +release: release-precheck precheckin image plugin-image release-plugins