Fix #1544, Unable to locate package libgmp-dev. (#1569)

* Fix #1544, Unable to locate package libgmp-dev.
This commit is contained in:
Shao Yu-Lung (Allen) 2018-05-27 10:06:00 +08:00 committed by GitHub
parent 07410e80cf
commit 808bd72d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,9 @@ FROM laradock/php-fpm:2.2-${PHP_VERSION}
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
# always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq
#
#--------------------------------------------------------------------------
# Mandatory Software's Installation
@ -49,7 +52,6 @@ ARG INSTALL_SOAP=false
RUN if [ ${INSTALL_SOAP} = true ]; then \
# Install the soap extension
rm /etc/apt/preferences.d/no-debian-php && \
apt-get update -yqq && \
apt-get -y install libxml2-dev php-soap && \
docker-php-ext-install soap \
;fi
@ -296,7 +298,6 @@ ARG INSTALL_INTL=false
RUN if [ ${INSTALL_INTL} = true ]; then \
# Install intl and requirements
apt-get update -yqq && \
apt-get install -y zlib1g-dev libicu-dev g++ && \
docker-php-ext-configure intl && \
docker-php-ext-install intl \

View File

@ -31,7 +31,9 @@ ENV PUID ${PUID}
ARG PGID=1000
ENV PGID ${PGID}
RUN groupadd -g ${PGID} laradock && \
# always run apt update when start and after add new source list, then clean up at end.
RUN apt-get update -yqq && \
groupadd -g ${PGID} laradock && \
useradd -u ${PUID} -g laradock -m laradock -G docker_env && \
usermod -p "*" laradock
@ -667,7 +669,6 @@ USER root
ARG INSTALL_IMAGEMAGICK=false
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
apt-get update && \
apt-get install -y --force-yes imagemagick php-imagick \
;fi