一个新的 docker 特性是在 dockerfile 中做这样的事情
FROM php7-fpm as build
...
FROM build AS test
...
FROM test AS staging
...
据我所知,最后一个 FROM 语句标记了最终的输出图像。怎么可能从一个中间图像中得到两个最终图像?
像
...
FROM build AS test
...
FROM test AS staging
...
FROM test AS prod
不应丢弃测试、分期和产品。我想将它们签入存储库。