Docker并尝试使用Azure Pipelines构建映像

时间:2018-10-15 07:40:25

标签: docker azure-devops azure-pipelines

希望有人可以帮助我看到树木所说的树木!

我不是Linux专家,因此我很可能缺少一些显而易见的东西。 我有一个包含以下内容的dockerfile:

FROM node:9.8.0-alpine as node-webapi
EXPOSE 3000
LABEL authors="David Sheardown"
COPY ["package.json", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . /home/vsts/work/1/s/
CMD ["node", "index.js"]

然后我有一个Azure管道设置,如下图所示:

enter image description here

我的问题似乎是构建过程无法找到dockerfile本身:

##[error]Unhandled: No Dockerfile matching  /home/vsts/work/1/s/**/Dockerfile  was found.

再次,对我缺乏Linux知识表示歉意。.我做过或没有做过的事情很愚蠢;)

P.S:我忘了在Azure管道中提及我正在使用“ 托管Linux预览

-更新-

这是获取资源的阶段:

enter image description here

0 个答案:

没有答案