predixy is a fast redis proxy. this is a images on centos 7.8
# 使用多阶段构建,阶段一: 编译程序
FROM centos:7.8.2003
MAINTAINER liaojinhua "[email protected]"
USER root
# 源加速
RUN rm -rf /etc/yum.repos.d/* && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ADD http://mirrors.aliyun.com/repo/Centos-7.repo /etc/yum.repos.d/
# 安装包并编译
RUN yum clean all && yum makecache && \
yum install -y gcc gcc+ gcc-c++ automake autoconf libtool make wget && \
yum install -y libstdc++-static && \
yum clean all
WORKDIR /opt/
RUN wget https://github.com/joyieldInc/predixy/archive/1.0.5.tar.gz && tar -xvzf 1.0.5.tar.gz
WORKDIR /opt/predixy-1.0.5
RUN make
# 使用多阶段构建,阶段二: 生成镜像
# 构建运行包
FROM centos:7.8.2003
COPY --from=0 /opt/predixy-1.0.5 /opt/predixy
EXPOSE 7617
VOLUME ["/opt/predixy/conf"]
CMD ["/opt/predixy/src/predixy"," /opt/predixy/conf/predixy.conf"]
Content type
Image
Digest
Size
82.7 MB
Last updated
over 5 years ago
docker pull valexv/predixy:1.0.5