oc-front/Makefile
2025-06-13 11:54:13 +02:00

45 lines
763 B
Makefile

.DEFAULT_GOAL := all
all: clean docker publish-kind publish-registry
linux:
./local_run.sh
purge:
lsof -t -i:8080 | xargs kill | true
run-dev:
flutter run -d linux --dart-define=AUTH_MODE=true
dev: purge run-dev
run:
flutter run
build:
flutter pub get
flutter build linux
flutter build web
clean:
rm -rf build/
flutter clean
docker:
DOCKER_BUILDKIT=1 docker build -t oc-front --build-arg HOST=$(HOST) -f Dockerfile .
docker tag oc-front:latest oc/oc-front:0.0.1
publish-kind:
kind load docker-image oc/oc-front:0.0.1 --name opencloud | true
publish-registry:
@echo "TODO"
docker-deploy:
docker compose up -d
run-docker: docker publish-kind publish-registry docker-deploy
.PHONY: build run clean docker publish-kind publish-registry