Clear dist directory when building binaries
This commit is contained in:
parent
74d4f21eb7
commit
4b6ee1a705
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
|
@ -16,7 +16,9 @@
|
|||
.PHONY: dist install docker binaries
|
||||
|
||||
SHELL := bash
|
||||
DOCKER_PLATFORM ?= linux/amd64 # linux/arm64 linux/arm/v7
|
||||
|
||||
# linux/amd64 linux/arm64 linux/arm/v7
|
||||
DOCKER_PLATFORM ?= linux/amd64
|
||||
DOCKER_OUTPUT ?= --load
|
||||
|
||||
dist:
|
||||
|
|
@ -38,6 +40,7 @@ docker-gpu:
|
|||
docker buildx build . -f Dockerfile.gpu --tag 'mycroftai/mimic3:gpu' $(DOCKER_OUTPUT)
|
||||
|
||||
binaries:
|
||||
docker buildx build . -f Dockerfile.binary --platform $(DOCKER_PLATFORM) --output type=local,dest=dist/$(DOCKER_PLATFORM)
|
||||
rm -rf "dist/$(DOCKER_PLATFORM)"
|
||||
docker buildx build . -f Dockerfile.binary --platform $(DOCKER_PLATFORM) --output "type=local,dest=dist/$(DOCKER_PLATFORM)"
|
||||
|
||||
debian:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue