NAME=table VERSION=latest BUILD_TIME := $(shell date "+%F %T") COMMIT_SHA1 := $(shell git rev-parse HEAD) AUTHOR := $(shell git show -s --format='%an') .PHONY: all gpu cpu all: gpu gpu: @docker build -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu --build-arg VERSION=gpu . # @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu cpu: @docker build -f cpu.Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu --build-arg VERSION=cpu . @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu image: rsync @ssh sxkj@192.168.199.107 -t 'cd /home/sxkj/zhangli/ocr-table && docker build -t SXKJ:32775/$(NAME):$(VERSION) .' deploy: rsync @ssh sxkj@192.168.199.107 -t 'cd /home/sxkj/zhangli/ocr-table && docker-compose down && docker-compose up -d' rsync: @rsync -azP --exclude ".*/" --exclude "tmp/" `pwd` sxkj@192.168.199.107:/home/sxkj/zhangli