mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
switch php version based on ARG (#924)
This commit is contained in:
parent
ca2eefa30a
commit
ddc7cf49c3
1 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,13 @@ RUN apt-get update \
|
|||
&& apt-get update \
|
||||
&& ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql17
|
||||
|
||||
# set PHP version
|
||||
RUN update-alternatives --set php /usr/bin/php$PHP_VERSION \
|
||||
&& update-alternatives --set phar /usr/bin/phar$PHP_VERSION \
|
||||
&& update-alternatives --set phar.phar /usr/bin/phar.phar$PHP_VERSION \
|
||||
&& update-alternatives --set phpize /usr/bin/phpize$PHP_VERSION \
|
||||
&& update-alternatives --set php-config /usr/bin/php-config$PHP_VERSION
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends libhiredis0.14 libjemalloc2 liblua5.1-0 lua-bitop lua-cjson redis redis-server redis-tools
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue