update pecl channel

This commit is contained in:
bestlong 2018-05-28 08:47:22 +08:00
parent cc20ac2421
commit d5efd5309e
2 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,8 @@ FROM laradock/php-fpm:2.2-${PHP_VERSION}
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>" LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
# always run apt update when start and after add new source list, then clean up at end. # always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq RUN apt-get update -yqq && \
pecl channel-update pecl.php.net
# #
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------

View File

@ -33,6 +33,7 @@ ENV PGID ${PGID}
# always run apt update when start and after add new source list, then clean up at end. # always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq && \ RUN apt-get update -yqq && \
pecl channel-update pecl.php.net && \
groupadd -g ${PGID} laradock && \ groupadd -g ${PGID} laradock && \
useradd -u ${PUID} -g laradock -m laradock -G docker_env && \ useradd -u ${PUID} -g laradock -m laradock -G docker_env && \
usermod -p "*" laradock usermod -p "*" laradock