Makefile/Dockerfile cleanup

This commit is contained in:
Jean-Marc ANDRE 2023-04-20 08:34:04 +02:00
parent adf2743b19
commit 1aa9d9efb5
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Build a small image # Build a small image
FROM --platform=${BUILDPLATFORM} golang:alpine3 AS builder FROM --platform=${BUILDPLATFORM} golang:alpine3.17 AS builder
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
ARG TARGETPLATFORM ARG TARGETPLATFORM

View File

@ -20,15 +20,11 @@ vet:
.PHONY: docker-build-multiarch .PHONY: docker-build-multiarch
docker-build-multiarch: docker-build-multiarch:
buildah bud --manifest $(MANIFEST) --platform=$(PLATFORMS) . buildah bud --manifest $(MANIFEST) --platform=$(PLATFORMS) --layers .
.PHONY: docker-push .PHONY: docker-push
docker-push: docker-push:
buildah manifest push --all --rm $(MANIFEST) "docker://$(IMG)" buildah manifest push --all --rm $(MANIFEST) "docker://$(IMG)"
.PHONY: docker-build-multiarch
docker-build-multiarch:
buildah bud --manifest $(MANIFEST) --platform linux/amd64,linux/arm64/v8 .
.PHONY: all .PHONY: all
all: formolcli docker-build all: formolcli docker-build