Troubles with Docker + PHP7 + GD resulting in “Call to undefined function imagecreatefromjpeg()”
發表於 : 2018-10-17 14:21:08
https://stackoverflow.com/questions/472 ... ion-imagec
代碼: 選擇全部
RUN apt-get update && \
apt-get install -y -qq
libjpeg62-turbo-dev \
libfreetype6-dev \
libmcrypt-dev \
libpng12-dev \
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install -j$(nproc) gd