Dockerfile.v1 1.0 KB

1234567891011121314151617181920212223242526
  1. FROM hub.evbj.easou.com/dev/centos:7.9.2009
  2. ENV TZ=Asia/Shanghai
  3. ENV JAVA_HOME /usr/java/jdk1.8.0_271
  4. COPY epel.repo /etc/yum.repos.d/epel.repo
  5. RUN rm -f /etc/yum.repos.d/CentOS-* \
  6. && curl -s http://mirrors.163.com/.help/CentOS7-Base-163.repo -o /etc/yum.repos.d/CentOS7-Base-163.repo \
  7. && yum clean all \
  8. && yum install -y supervisor \
  9. && sed -i "s/nodaemon=false/nodaemon=true/" /etc/supervisord.conf \
  10. && useradd ecom \
  11. && mkdir -p /usr/java /app/ecom /data/ecom \
  12. && curl -s http://10.26.22.185:9000/psop/soft/jdk1.8.0_271.tar.gz -o /tmp/jdk1.8.0_271.tar.gz \
  13. && curl -s http://10.26.22.185:9000/psop/soft/ecom/sep_resin8080.tgz -o /tmp/sep_resin8080.tgz \
  14. && tar -zxf /tmp/jdk1.8.0_271.tar.gz -C /usr/java/ \
  15. && tar -zxf /tmp/sep_resin8080.tgz -C /app/ecom/ \
  16. && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  17. && chown -R ecom:ecom /app /data
  18. COPY sep.ini /etc/supervisord.d/sep.ini
  19. COPY entrypoint.sh /usr/bin/entrypoint.sh
  20. ENTRYPOINT ["entrypoint.sh"]
  21. CMD ["supervisord"]