![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
dockerfile
weixin_42094764
这个作者很懒,什么都没留下…
展开
-
转 dockerfile php nginx
https://blog.csdn.net/qq_35679620/article/details/110953207 FROM centos:7 MAINTAINER 915177778@qq.com #切换系统时间 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #安装wget php74 RUN yum -y install wget \ && wget https://www.php.net/distribut转载 2022-04-14 10:16:37 · 121 阅读 · 0 评论 -
docker file 学习
dockerfile 的作用是将本地文件打包成docker镜像以供使用,这里详细说下他的个个参数 首先是FORM FORM 是指定你的镜像是基于那个镜像之上运行的,一般来说就是写各种服务器的镜像名,比如nginx,ubuntu,apche等等。 FROM nginx 然后MAINTAINER,就是写作者,这里就可以写下你的大名了 MAINTAINER "hahahah" 接着 WORKDIR,WORKDIR指令为Dockerfile中的任何 RUN、CMD、ENTRYPOINT、COPY 和 ADD指令原创 2021-06-11 18:16:42 · 74 阅读 · 0 评论