我开始使用CaptainDuckDuck来部署Angular项目。 如本教程中所述,我创建了一个captaind-definition文件,并将其替换为:
{
"schemaVersion": 1,
"dockerfileLines": ["FROM socialengine/nginx-spa:latest", "COPY ./dist /app",
"RUN chmod -R 777 /app"]
}
因为./dist等效于Angular中的build文件夹。
然后,我尝试启动captainduckduck deploy但出现此错误:
第2/3步:复制./dist / app
{"message":"COPY failed: stat /var/lib/docker/tmp/docker-builder648016396/dist: no such file or directory"}
COPY failed: stat /var/lib/docker/tmp/docker-builder648016396/dist: no such file or directory
----------------------
Deploy failed!
Error: {"message":"COPY failed: stat /var/lib/docker/tmp/docker-builder648016396/dist: no such file or directory"}
COPY failed: stat /var/lib/docker/tmp/docker-builder648016396/dist: no such file or directory
我已经尝试使用root特权运行所有内容,但是不幸的是,这似乎并没有改变任何东西。
我运行的命令:
git clone my-git-project
npm run build
添加队长定义并提交
captainduckduck deploy
我知道这是一个安静的常见错误,但我不知道如何解决。请耐心等待我,我可能犯了很多错误x) 谢谢