VPS侦探论坛

 找回密码
 注册
查看: 4410|回复: 1

基于军哥1.3版的dockerfile,感谢军哥,对docker感兴趣的可以一起来讨论啊,还有很多要完善的地方,安装还是要进入容器里面才行。

[复制链接]
发表于 2017-2-24 18:49:32 | 显示全部楼层 |阅读模式

FROM ubuntu
MAINTAINER zywinner168 <zywinner168@gmail.com>

RUN echo "deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse">> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse">> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd
RUN mkdir -p /opt/tools/
RUN echo "Asia/shanghai" > /etc/timezone
RUN echo "root:abcd1234" | chpasswd
RUN apt-get install -y vim wget curl

RUN wget -P /opt/tools/ http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz
RUN mkdir -p /opt/tools/soft.vpser.net/lnmp/
RUN tar -xzvf /opt/tools/lnmp1.3-full.tar.gz -C /opt/tools/soft.vpser.net/lnmp/

ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

CMD ["/usr/sbin/sshd", "-D"]
#CMD ["/opt/tools/soft.vpser.net/lnmp/lnmp1.3-full/install.sh"]
EXPOSE 22
EXPOSE 80
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-3-15 13:36:48 | 显示全部楼层


一些用完后不需要的依赖包的清理还有下载的lnmp包的清理,这些都没有,还有就是版本的选择!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 01:37 , Processed in 0.025582 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表