Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了一个非常奇怪的问题,Dockerfile当它在 GCP Cloud Build 上构建时,它的一个步骤失败了。
Dockerfile
然而,它在本地构建就好了。
问题的原因可能是什么?为什么会有任何不同?
无法构建的实际命令是npm build容器内的。
npm build
原来.env是我在本地拥有的一个文件(但由于 gitignore 而没有出现在存储库中)。
.env