2021-05-18 15:48:49 +02:00
|
|
|
IMG_NAME = monero
|
2022-03-07 13:55:05 +01:00
|
|
|
REGISTRY=registry.monotremata.xyz:443
|
|
|
|
IMG=$(REGISTRY)/$(IMG_NAME)
|
2021-05-18 15:48:49 +02:00
|
|
|
|
2022-03-07 13:55:05 +01:00
|
|
|
.PHONY: build build-nc push
|
2021-05-18 15:48:49 +02:00
|
|
|
|
|
|
|
hw=$(shell uname -m)
|
|
|
|
ifeq ($(hw), x86_64)
|
|
|
|
ARCH=x64
|
|
|
|
else ifeq ($(hw), aarch64)
|
|
|
|
ARCH=armv8
|
|
|
|
else
|
|
|
|
ARCH=$(hw)
|
|
|
|
endif
|
|
|
|
|
|
|
|
build: Dockerfile
|
2022-03-07 13:55:05 +01:00
|
|
|
docker build -t $(IMG) --build-arg ARCH=$(ARCH) .
|
|
|
|
|
|
|
|
push: build
|
|
|
|
docker image push $(IMG)
|
2021-05-18 15:48:49 +02:00
|
|
|
|
|
|
|
build-nc: Dockerfile
|
2022-03-07 13:55:05 +01:00
|
|
|
docker build --no-cache -t $(IMG) --build-arg ARCH=$(ARCH) .
|