Dockerfile 部署应用执行脚本文件

FROM centos6.6:0.0.1

MAINTAINER syberos:wangmo

RUN mv /etc/yum.repos.d/ /etc/yum.repos.d_bak/ && mkdir /etc/yum.repos.d

ADD 102.repo /etc/yum.repos.d

RUN yum clean all && yum install -y redis

ADD redis1.conf redis2.conf redis3.conf /etc/

ADD start_redis.sh /usr/local/src/

CMD [ "sh","/usr/local/src/start_redis.sh" ]

 

posted @ 2018-04-02 14:17  wangmo  阅读(1849)  评论(0编辑  收藏  举报