Split out arm dockerfile
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,7 +1,6 @@
|
||||
.DEFAULT_GOAL := default
|
||||
|
||||
IMAGE ?= docker.cluster.fun/averagemarcus/megasync:latest
|
||||
PLATFORMS ?= linux/amd64,linux/arm/v7
|
||||
|
||||
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
|
||||
@@ -44,11 +43,18 @@ docker-build:
|
||||
docker-publish:
|
||||
@docker buildx create --use --name=crossplat --node=crossplat && \
|
||||
docker buildx build \
|
||||
--platform $(PLATFORMS) \
|
||||
--output "type=image,push=true" \
|
||||
--tag $(IMAGE) \
|
||||
.
|
||||
|
||||
.PHONY: docker-publish-arm # Build and push the armhf image (needs to be built on ARM hardware)
|
||||
docker-publish-arm:
|
||||
@docker buildx create --use --name=crossplat --node=crossplat && \
|
||||
docker buildx build \
|
||||
--output "type=image,push=true" \
|
||||
--tag $(IMAGE)-armhf \
|
||||
.
|
||||
|
||||
.PHONY: run # Run the application
|
||||
run:
|
||||
@echo "⚠️ 'run' unimplemented"
|
||||
|
Reference in New Issue
Block a user