Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM hub.evbj.easou.com/dev/centos:7.9.2009
  2. LABEL author="robert[robert_du@easou.cn]"
  3. ENV LANG en_US.UTF-8
  4. ENV TZ=Asia/Shanghai
  5. COPY entrypoint.sh /usr/bin/entrypoint.sh
  6. COPY supervisord.service /root/supervisord.service
  7. COPY install_tools.sh /root/install_tools.sh
  8. COPY centos-base.repo /etc/yum.repos.d/centos-base.repo
  9. # install supervisor & nginx
  10. RUN rm -f /etc/yum.repos.d/CentOS-* ; yum makecache \
  11. && yum -y install wget rsync lsof crontabs vim psmisc zip unzip make gcc lua*\
  12. && mkdir -p /app/soft /cron/root \
  13. && curl -O http://10.26.22.113:9000/book/api-tengine/nginx-2.0.3.tar.gz \
  14. && curl -O http://10.26.22.113:9000/psop/soft/supervisor-4.2.4.tar.gz \
  15. && curl -O http://10.26.22.113:9000/psop/soft/setuptools-42.0.2.zip \
  16. && curl -O http://10.26.22.113:9000/psop/soft/LuaJIT-2.0.5.tar.gz \
  17. && tar -zxf supervisor-4.2.4.tar.gz -C /root/ \
  18. && unzip -d /root/ setuptools-42.0.2.zip \
  19. && tar xf nginx-2.0.3.tar.gz -C /app/soft/ \
  20. && tar -zxf LuaJIT-2.0.5.tar.gz -C /root/ \
  21. && rm -rf nginx-2.0.3.tar.gz supervisor-4.2.4.tar.gz setuptools-42.0.2.zip \
  22. && cd /app/soft ;ln -s /app/soft/nginx-2.0.3 nginx \
  23. && ln -s /lib64/libpcre.so.1.2.0 /lib64/libpcre.so.0
  24. && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  25. && sh /root/install_tools.sh \
  26. && chmod +x /usr/bin/entrypoint.sh
  27. COPY nginxlog_cut.sh /cron/root/nginxlog_cut.sh
  28. COPY root /var/spool/cron/root
  29. COPY nginx.ini /etc/supervisord.d/nginx.ini
  30. #start nginx
  31. ENTRYPOINT ["entrypoint.sh"]
  32. CMD ["supervisord"]