Dockerfile 文件内容如下:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
ARG PROJECT
WORKDIR /app
COPY src/${PROJECT}/publish .
当前目录下明明存在 src/${PROJECT}/publish
文件夹,但 build 镜像时却报错:
Step 4/6 : COPY src/${PROJECT}/publish .
COPY failed: stat /var/lib/docker/tmp/docker-builder705728397/src/CNBlogs.KB.Web/publish: no such file or directory
请问如何解决这个问题?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
docker build完整命令能贴一下吗
感觉应该是指定context时的问题
啊,dudu的问题。。。
ARG PROJECT 只是定义了一个变量,没有赋值?
把资源挪到Dockerfile同目录下,使用相对路径
应该是content没有对上吧
有这个目录吗? /var/lib/docker/tmp/docker-builder705728397/src/CNBlogs.KB.Web/publish