RUN apk add –no-cache –virtual=build-dependencies 详解

RUN apk add –no-cache –virtual=build-dependencies 详解
-t, --virtual NAME Instead of adding all the packages to 'world', create a new virtual package with the listed dependencies and add that to 'world'; the actions of the command are easily reverted by deleting the virtual package 这意味着当您安装软件包时,这些软件包不会添加到全局软件包中。这种变化可以很容易地恢...