Skip to content

Commit

Permalink
fix: add docker container builder
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksii-honchar committed Jul 29, 2024
1 parent f46eb7b commit 6d08e50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ ifndef NODE_ENV
export NODE_ENV = development
endif

# used for multi-platform builds
create-docker-container-builder:
@docker buildx create --use --name docker-container --driver docker-container
@docker buildx inspect docker-container --bootstrap

docker-build: check-node-env ## build docker image
docker build --load -f ./Dockerfile --build-arg IMAGE_VERSION=$(IMAGE_VERSION) --build-arg IMAGE_NAME=$(IMAGE_NAME) -t $(DOCKERHUB_USERNAME)/$(IMAGE_NAME):$(IMAGE_VERSION) .

Expand Down

0 comments on commit 6d08e50

Please sign in to comment.