我试图将docker容器部署到AWS CodeBuild,并且它继续执行以下步骤:
COPY dist/* /var/www/html/
我确定那个目录里面有东西,只是为了确保我运行命令ls dist:
Step 4 : RUN ls dist
---> Running in cc6a985f54dd
1.1.329fd43c10e3d0fc91b9.js
3.3.d0a0148e036318c95bfe.js
4.4.d85fbfa6409009fb6e4c.js
app.a6626f87bbfc6e67618d.js
app.cd527cf8dea96798229c62fb7d983606.css
favicon.ico
humans.txt
index.html
robots.txt
vendor.d81f28030613dd8760c0.js
我的dockerfile:
FROM jaronoff/listmkr-prod
# Remove the default Nginx index.html
RUN rm -rf /var/www/html/index.Nginx-debian.html
RUN npm run deploy:prod
# Copy the contents of the dist directory over to the Nginx web root
RUN ls dist
COPY dist/* /var/www/html/
# Expose the public http port
EXPOSE 80
# Start server
CMD ["Nginx","-g","daemon off;"]
最佳答案
原文链接:https://www.f2er.com/docker/437130.html