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