用Dockerfile构造centos + PHP7的镜像,但是我想在PHP里面编译开启很多扩展,应该怎么做?

用Dockerfile构造centos + PHP7的镜像,但是我想在PHP里面编译开启很多扩展,应该怎么做?

比如我要开启10个扩展,都要RUN 10次 执行10条命令吗?

阅读 5.3k
5 个回答

一个Run可以执行多个命令,&& 分割开来。

或者你可以运行容器,并进入,然后手动开启扩展,然后提交成镜像(不建议)。

另外php的官方docker镜像不是提供了docker-php-ext-install 嘛

https://github.com/docker-lib...

新手上路,请多包涵

其实这是最令人兴奋的游戏之一。该网站还有许多不同类型的游戏,您可以玩和感受。非常感谢您访问我的网站,并祝您成功。非常感谢! |=>bloons tower defense 5
super smash flash 2

新手上路,请多包涵

I want to thank you for this wonderful read!! I definitely loved every bit of it. I have got you bookmarked to check out new things when you post on this site… descargar minecraft gratis

新手上路,请多包涵

I want to to thank you for this wonderful read!! I definitely loved every bit of it. I have got you bookmarked to check out new things you post… Iniciar Sesión en Office 365

新手上路,请多包涵

Wow! This can be one particular of the most useful blogs We’love ever arrive across on this subject. Actually Excellent. I am also a specialist in this topic therefore I can understand your effort.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进