|
@@ -13,16 +13,19 @@ COPY centos-base.repo /etc/yum.repos.d/centos-base.repo
|
|
|
# install supervisor & nginx
|
|
|
|
|
|
RUN rm -f /etc/yum.repos.d/CentOS-* ; yum makecache \
|
|
|
- && yum -y install wget rsync lsof crontabs vim psmisc zip unzip\
|
|
|
+ && yum -y install wget rsync lsof crontabs vim psmisc zip unzip make gcc lua*\
|
|
|
&& mkdir -p /app/soft /cron/root \
|
|
|
&& curl -O http://10.26.22.113:9000/book/api-tengine/nginx-2.0.3.tar.gz \
|
|
|
&& curl -O http://10.26.22.113:9000/psop/soft/supervisor-4.2.4.tar.gz \
|
|
|
&& curl -O http://10.26.22.113:9000/psop/soft/setuptools-42.0.2.zip \
|
|
|
+ && curl -O http://10.26.22.113:9000/psop/soft/LuaJIT-2.0.5.tar.gz \
|
|
|
&& tar -zxf supervisor-4.2.4.tar.gz -C /root/ \
|
|
|
&& unzip -d /root/ setuptools-42.0.2.zip \
|
|
|
&& tar xf nginx-2.0.3.tar.gz -C /app/soft/ \
|
|
|
+ && tar -zxf LuaJIT-2.0.5.tar.gz -C /root/ \
|
|
|
&& rm -rf nginx-2.0.3.tar.gz supervisor-4.2.4.tar.gz setuptools-42.0.2.zip \
|
|
|
&& cd /app/soft ;ln -s /app/soft/nginx-2.0.3 nginx \
|
|
|
+ && ln -s /lib64/libpcre.so.1.2.0 /lib64/libpcre.so.0
|
|
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
|
&& sh /root/install_supervisor.sh \
|
|
|
&& chmod +x /usr/bin/entrypoint.sh
|