Alpine commands used
This commit is contained in:
parent
72d11e4485
commit
0a253a3d7e
|
@ -106,20 +106,21 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# YAML: extension
|
# YAML: extension
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
ARG INSTALL_YAML=false
|
ARG INSTALL_YAML=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_YAML} = true ]; then \
|
RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||||
apt-get install libyaml-dev -y ; \
|
apk --update add -U --no-cache --virtual temp yaml-dev \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
&& apk add --no-cache yaml \
|
||||||
pecl install -a yaml-1.3.2; \
|
&& docker-php-source extract \
|
||||||
else \
|
&& pecl channel-update pecl.php.net \
|
||||||
pecl install yaml; \
|
&& pecl install yaml \
|
||||||
fi && \
|
&& docker-php-ext-enable yaml \
|
||||||
echo "extension=yaml.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini && \
|
&& pecl clear-cache \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/35-yaml.ini \
|
&& docker-php-source delete \
|
||||||
|
&& apk del temp \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue