fix(YAML extension): avoid typo
This commit is contained in:
parent
ad2b94fa60
commit
5686c698e7
|
@ -838,15 +838,15 @@ USER root
|
|||
ARG INSTALL_YAML=false
|
||||
|
||||
RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||
apt-get install libyaml-dev -y ; \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||
apt-get install -yqq libyaml-dev \
|
||||
&& if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||
echo '' | pecl install -a yaml-1.3.2; \
|
||||
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
||||
echo '' | pecl install yaml-2.0.4; \
|
||||
else \
|
||||
echo '' | pecl install yaml; \
|
||||
fi \
|
||||
&& docker-php-ext-enable yaml; \
|
||||
&& docker-php-ext-enable yaml \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
|
|
Loading…
Reference in New Issue