Dockerfile-base 860 B

123456789101112131415161718192021222324252627
  1. FROM hub.evbj.easou.com/dev/centos:6.8
  2. MAINTAINER scofield[scofield_shi@easou.cn]
  3. ADD nginx.ini /etc/supervisor/conf.d/nginx.ini
  4. #install
  5. RUN yum install -y wget rsync epel-release \
  6. && yum install -y vixie-cron \
  7. && yum install -y supervisor \
  8. && yum install -y nginx \
  9. && mkdir -p /usr/local/java /app \
  10. && curl -O http://10.26.22.185:9000/psop/soft/jdk1.6.0_21.tar.gz \
  11. && tar -zxf jdk1.6.0_21.tar.gz -C /usr/local/java/ \
  12. && rm -f jdk1.6.0_21.tar.gz \
  13. && rm -f /etc/nginx/nginx.conf
  14. COPY entrypoint.sh /usr/bin/entrypoint.sh
  15. COPY release /etc/release
  16. COPY supervisord.conf /etc/supervisord.conf
  17. COPY nginx.conf /etc/nginx/nginx.conf
  18. RUN export RELEASE=`head -n 1 /etc/release` \
  19. && chmod +x /usr/bin/entrypoint.sh \
  20. && ln -s /usr/local/java/jdk1.6.0_21/bin/* /usr/bin/ \
  21. #start miscSearch
  22. ENTRYPOINT ["entrypoint.sh"]
  23. CMD ["supervisord"]