【发布时间】:2020-03-05 23:16:54
【问题描述】:
我正在写一个简单的 Makefile:
all: image
image: ./common ./source
docker build -t some-resource -f source/Dockerfile .
.PHONY: all image
我希望 image 仅在文件夹 common 或 source 下的文件发生更改时构建。但是当我运行make 时,它总是运行docker run,即使没有任何文件更改。有什么问题?
【问题讨论】:
-
docker命令实际产生了什么?
标签: makefile