Skip to content

Commit 4a7978f

Browse files
authored
fix: make image using Dockerfile.dev works (argoproj#1296)
Signed-off-by: Mehmet Hatip <[email protected]>
1 parent c6d7ff0 commit 4a7978f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# argo-rollouts-dev
33
####################################################################################################
44
FROM scratch
5-
COPY dist/rollouts-controller-linux-amd64 /bin/rollouts-controller
5+
COPY rollouts-controller-linux-amd64 /bin/rollouts-controller
66
ENTRYPOINT [ "/bin/rollouts-controller" ]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ builder-image:
210210
image:
211211
ifeq ($(DEV_IMAGE), true)
212212
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -i -ldflags '${LDFLAGS}' -o ${DIST_DIR}/rollouts-controller-linux-amd64 ./cmd/rollouts-controller
213-
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev .
213+
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) -f Dockerfile.dev ${DIST_DIR}
214214
else
215215
docker build -t $(IMAGE_PREFIX)argo-rollouts:$(IMAGE_TAG) .
216216
endif
@@ -282,4 +282,4 @@ release-plugins:
282282
./hack/build-release-plugins.sh
283283

284284
.PHONY: release
285-
release: release-precheck precheckin image plugin-image release-plugins
285+
release: release-precheck precheckin image plugin-image release-plugins

0 commit comments

Comments
 (0)