Azure Pipeline to build docker images fails using same docker file in Visual Studio

后端 未结 5 1419
执笔经年
执笔经年 2021-02-19 09:43

I\'m trying to create a deployment pipeline to deploy my image to Kubernetes cluster. The first step in this process is to create an image based on the docker file. The docker

5条回答
  •  佛祖请我去吃肉
    2021-02-19 10:19

    I solved the issue by setting the buildContext to '$(Build.Repository.LocalPath)' using the same dockerfile as in Visual Studio without adjusting the paths:

    In YAML-Konfiguration, I added the following line:

    buildContext: '$(Build.Repository.LocalPath)'
    

提交回复
热议问题