2024-03-29 17:49:24 +03:00
|
|
|
DOCKER_ORG := ritualnetwork
|
|
|
|
TAG := $(DOCKER_ORG)/hello-world-infernet:latest
|
|
|
|
|
|
|
|
.phony: build run publish
|
|
|
|
|
|
|
|
build:
|
2024-06-06 20:18:48 +03:00
|
|
|
@docker build -t $(TAG) --build-arg index_url=$(index_url) .
|
2024-03-29 17:49:24 +03:00
|
|
|
|
|
|
|
update-tag:
|
|
|
|
jq ".containers[0].image = \"$(TAG)\"" config.json > updated_config.json && mv updated_config.json config.json
|
|
|
|
|
|
|
|
run: build
|
|
|
|
docker run \
|
2024-06-17 03:39:51 +03:00
|
|
|
--restart unless-stopped \
|
2024-03-29 17:49:24 +03:00
|
|
|
-p 3000:3000 $(TAG)
|
|
|
|
|
|
|
|
# You may need to set up a docker builder, to do so run:
|
|
|
|
# docker buildx create --name mybuilder --bootstrap --use
|
|
|
|
# refer to https://docs.docker.com/build/building/multi-platform/#building-multi-platform-images for more info
|
|
|
|
build-multiplatform:
|
|
|
|
docker buildx build --platform linux/amd64,linux/arm64 -t $(TAG) --push .
|