From a0e2d65f7231c466f07fd94169cc86b2737fe6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E6=AD=A3=E7=81=B0?= Date: Tue, 25 Feb 2020 18:26:08 +0800 Subject: [PATCH] Multiple lsphp & Binary packet residue https://github.com/Code-Egg/OpenLiteSpeed-Dockerfiles/issues/1 https://github.com/Code-Egg/OpenLiteSpeed-Dockerfiles/issues/2 --- template/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/Dockerfile b/template/Dockerfile index 07f6905..01353cd 100644 --- a/template/Dockerfile +++ b/template/Dockerfile @@ -8,7 +8,11 @@ ARG PHP_VERSION RUN apt-get update && apt-get install wget curl cron tzdata -y RUN wget https://openlitespeed.org/preuse/openlitespeed-$OLS_VERSION.tgz && \ - tar xzvf openlitespeed-$OLS_VERSION.tgz && cd openlitespeed && ./install.sh && rm -rf /openlitespeed + tar xzvf openlitespeed-$OLS_VERSION.tgz && cd openlitespeed && \ + LINENUM=$(grep -n "LSPHPVER=" _in.sh | cut -d: -f 1) && \ + sed -i "${LINENUM}d" _in.sh && \ + sed -i "${LINENUM}iLSPHPVER=${PHP_VERSION}" _in.sh && \ + ./install.sh && rm -rf ../openlitespeed ../openlitespeed-$OLS_VERSION.tgz RUN apt-get install mysql-client $PHP_VERSION $PHP_VERSION-common $PHP_VERSION-mysql $PHP_VERSION-opcache \ $PHP_VERSION-curl $PHP_VERSION-json $PHP_VERSION-imagick $PHP_VERSION-redis $PHP_VERSION-memcached -y