通过本篇最佳实践,可以熟悉容器及k8s的基本操作。基于eci的高弹性架构,能有效的应对业务流量洪峰,同时提升资源使用效率。
FROM nginx:mainline-alpine RUN rm/etc/nginx/conf.d/*ADD nginx.conf/etc/nginx/conf.d/ADD index.html /usr/share/nginx/html/ 说明:将 nginx:mainline-alpine作为基础镜像,将本地的配置文件 nginx.conf 放到/etc/nginx/conf.d/目录下,index.html文件放到/usr/share/nginx/html/下,配置成静态 web服务器。...