docker构建redis-server

docker构建redis-server

```
FROM centos:7
MAINTAINER dugutianxue
RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup \
        && curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
        && curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo \
        && yum clean all && yum makecache \
        && yum install wget gcc make -y \
        && wget http://download.redis.io/releases/redis-4.0.10.tar.gz \
        && tar -zxvf redis-4.0.10.tar.gz -C /usr/local/src \
        && cd /usr/local/src/redis-4.0.10 \
        && make && make install \
        && rm -rf /redis-4.0.10.tar.gz && rm -rf /usr/local/src/redis-4.0.10  \
        && yum clean all
EXPOSE 6379
CMD ["redis-server"]
```

独孤天血

文章作者信息...

留下你的评论

*评论支持代码高亮<pre class="prettyprint linenums">代码</pre>

相关推荐