[build] x86 images
This commit is contained in:
parent
31b035cb67
commit
c858fe2c96
1 changed files with 11 additions and 0 deletions
11
Makefile
11
Makefile
|
@ -1,6 +1,17 @@
|
||||||
VERSION=0.`git rev-list --count HEAD`
|
VERSION=0.`git rev-list --count HEAD`
|
||||||
.PHONY: black
|
.PHONY: black
|
||||||
|
|
||||||
|
DOCKER_BUILD=docker build
|
||||||
|
|
||||||
|
ifeq ($(shell uname -m), arm64)
|
||||||
|
DOCKER_BUILD=docker buildx build --platform linux/amd64
|
||||||
|
endif
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(DOCKER_BUILD) -t registry.domandoman.xyz/fooder/api -f Dockerfile .
|
||||||
|
|
||||||
|
push:
|
||||||
|
docker push registry.domandoman.xyz/fooder/api
|
||||||
|
|
||||||
black:
|
black:
|
||||||
black .
|
black .
|
||||||
|
|
Loading…
Reference in a new issue