Skip to content

Commit

Permalink
Merge pull request #14 from go-park-mail-ru/NM-8
Browse files Browse the repository at this point in the history
NM-8: fix platform of image build
  • Loading branch information
Max425 authored Sep 29, 2024
2 parents 2c1a440 + 9e5409e commit 05a7c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ version ?= latest
.PHONY: build-image
## Build docker image of microservice with name.
build-image:
@docker build -f docker/Dockerfile.$(ENV) -t daronenko/$(SERVICE_NAME):$(version) .
@docker build -f docker/Dockerfile.$(ENV) --platform linux/amd64 -t daronenko/$(SERVICE_NAME)-backend:$(version) .

.PHONY: push-image
## Push docker image of microservice to the docker hub.
push-image:
@docker push daronenko/$(SERVICE_NAME):$(version)
@docker push daronenko/$(SERVICE_NAME)-backend:$(version)

################################################################################
# Cleaning
Expand Down

0 comments on commit 05a7c82

Please sign in to comment.