Makefile 564 B

1234567891011121314151617
  1. NAME=paddle
  2. VERSION=latest
  3. BUILD_TIME := $(shell date "+%F %T")
  4. COMMIT_SHA1 := $(shell git rev-parse HEAD)
  5. AUTHOR := $(shell git show -s --format='%an')
  6. .PHONY: all gpu cpu
  7. all: gpu
  8. gpu:
  9. @docker build -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu --build-arg VERSION=gpu .
  10. # @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu
  11. cpu:
  12. @docker build -f cpu.Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu --build-arg VERSION=cpu .
  13. # @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu