mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Specify docker platform args for build and run commands
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									a1ce176fc4
								
							
						
					
					
						commit
						74ddfe901a
					
				| @ -122,6 +122,7 @@ docker-build-%: | ||||
| 	docker pull --platform=linux/$(ARCH) $(BASEIMAGE) | ||||
| 	DOCKER_BUILDKIT=1 \
 | ||||
| 	$(DOCKER) build \
 | ||||
| 	    --platform=linux/$(ARCH) \
 | ||||
| 	    --progress=plain \
 | ||||
| 	    --build-arg BASEIMAGE="$(BASEIMAGE)" \
 | ||||
| 	    --build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
 | ||||
| @ -131,6 +132,7 @@ docker-build-%: | ||||
| 	    --tag $(BUILDIMAGE) \
 | ||||
| 	    --file $(DOCKERFILE) . | ||||
| 	$(DOCKER) run \
 | ||||
| 	    --platform=linux/$(ARCH) \
 | ||||
| 	    -e DISTRIB \
 | ||||
| 	    -e SECTION \
 | ||||
| 	    -v $(ARTIFACTS_DIR):/dist \
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user