Makefile 393 B

12345678910111213141516
  1. build_date = `date +%Y%m%d%H%M`
  2. version = `git rev-parse --short HEAD`
  3. image-dev = SXKJ:32775/yili-dag-frontend:$(build_date)
  4. .PHONY: dev
  5. dev:
  6. @docker build . \
  7. -t $(image-dev) \
  8. -f Dockerfile
  9. idctest:
  10. @docker build . -t registry.cn-hangzhou.aliyuncs.com/sxtest/dag-frontend:idctest -f Dockerfile.idctest
  11. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/dag-frontend:idctest