Add rule for crosscompiling arm image (#243)
This commit is contained in:
committed by
Henning Jacobs
parent
b0211d66bc
commit
7a70fb346d
6
Makefile
6
Makefile
@@ -23,6 +23,12 @@ docker: appjs
|
||||
docker build --build-arg "VERSION=$(VERSION)" -t "$(IMAGE):$(TAG)" .
|
||||
@echo 'Docker image $(IMAGE):$(TAG) can now be used.'
|
||||
|
||||
docker-arm: appjs
|
||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
docker buildx create --name arm-node --append --use --platform "linux/arm"
|
||||
docker buildx build --build-arg "VERSION=$(VERSION)" --platform "linux/arm" -t $(IMAGE):$(TAG) --load .
|
||||
@echo 'Docker image $(IMAGE):$(TAG) can now be used.'
|
||||
|
||||
push: docker
|
||||
docker push "$(IMAGE):$(TAG)"
|
||||
docker tag "$(IMAGE):$(TAG)" "$(IMAGE):latest"
|
||||
|
||||
Reference in New Issue
Block a user