Makefile 818 B

12345678910111213141516171819
  1. ImageTag ?=v0.9.6
  2. KptSystemWebImg ?=kpt-event/kpt-system-web:$(ImageTag)
  3. VERSION=$(shell git rev-parse --short HEAD)
  4. img-build:
  5. pnpm i && pnpm build
  6. docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
  7. #docker buildx create --use --name mybuilder
  8. docker buildx inspect mybuilder --bootstrap
  9. #docker build --build-arg version=$(VERSION) -t ${KptSystemWebImg} -f ./Dockerfile .
  10. docker buildx build --build-arg version=$(VERSION) -t ${KptSystemWebImg} -f ./Dockerfile --platform=linux/arm64 -o type=docker .
  11. docker tag ${KptSystemWebImg} registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
  12. docker push registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
  13. docker rmi ${KptSystemWebImg} registry.cn-hangzhou.aliyuncs.com/${KptSystemWebImg}
  14. # run tauri app:
  15. run:
  16. pnpm tauri dev