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
2 changed files with 6 additions and 4 deletions

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