added a single target for building docker image

Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
This commit is contained in:
Kartikay 2024-02-02 00:19:19 +05:30
parent c006c57efc
commit 0e80d499e5

View file

@ -152,3 +152,18 @@ update-all-go-deps:
$(GO) get -d $$m; \
done
@cd ./documentation/examples/remote_storage/ && $(GO) mod tidy
.PHONY: docker-curr-arch
docker-curr-arch:
@echo ">> Building promu and crossbuilding"
$(MAKE) promu
$(MAKE) npm_licenses
@echo ">> Running promu crossbuild"
promu crossbuild -p $(shell go env GOHOSTOS)/$(shell go env GOHOSTARCH)
@echo ">> Building promu and crossbuilding"
$(MAKE) promu
docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$(shell go env GOHOSTARCH):$(SANITIZED_DOCKER_IMAGE_TAG)" \
-f $(DOCKERFILE_PATH) \
--build-arg ARCH="$(shell go env GOHOSTARCH)" \
--build-arg OS="$(shell go env GOHOSTOS)" \
$(DOCKERBUILD_CONTEXT)