Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rorajani authored Aug 17, 2023
1 parent dbc952f commit 906c94d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployments/container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ build-%: DOCKERFILE = $(CURDIR)/deployments/container/Dockerfile.$(DOCKERFILE_SU
# Both ubi8 and build-ubi8 trigger a build of the relevant image
$(DISTRIBUTIONS): %: build-%
$(BUILD_TARGETS): build-%:
$(DOCKER) $(BUILDX) create --use --name network-host --driver-opt network=host \
--buildkitd-flags '--allow-insecure-entitlement network.host'
DOCKER_BUILDKIT=1 \
$(DOCKER) $(BUILDX) build --pull \
$(DOCKER_BUILD_OPTIONS) \
$(DOCKER_BUILD_PLATFORM_OPTIONS) \
--allow network.host \
--tag $(IMAGE) \
--build-arg BASE_DIST="$(DIST)" \
--build-arg CUDA_VERSION="$(CUDA_VERSION)" \
Expand Down

0 comments on commit 906c94d

Please sign in to comment.