docker.Makefile: fix phony targets (#82941)

### Description
Updated phony targets in `docker.Makefile` to refer to the `make` target called directly after `.PHONY` declarations. This was probably the author's intention.

### Issue
None - this is a simple fix.

### Testing
* Ran `make -f docker.Makefile devel-push`
* Ran `make -f docker.Makefile runtime-push`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/82941
Approved by: https://github.com/kit1980
This commit is contained in:
Justin Evans
2022-08-10 02:40:34 +00:00
committed by PyTorch MergeBot
parent 90821aab10
commit e100795048

View File

@ -48,7 +48,7 @@ devel-image: DOCKER_TAG := $(PYTORCH_VERSION)-devel
devel-image:
$(DOCKER_BUILD)
.PHONY: devel-image
.PHONY: devel-push
devel-push: BASE_IMAGE := $(BASE_DEVEL)
devel-push: DOCKER_TAG := $(PYTORCH_VERSION)-devel
devel-push:
@ -61,7 +61,7 @@ runtime-image:
$(DOCKER_BUILD)
docker tag $(DOCKER_FULL_NAME):$(DOCKER_TAG) $(DOCKER_FULL_NAME):latest
.PHONY: runtime-image
.PHONY: runtime-push
runtime-push: BASE_IMAGE := $(BASE_RUNTIME)
runtime-push: DOCKER_TAG := $(PYTORCH_VERSION)-runtime
runtime-push: