试图在docker中的alpine
linux上安装GD依赖项.
我正在构建PHP5-fpm-alpine图像.
FROM PHP:5-fpm-alpine
RUN docker-PHP-ext-install MysqLi
RUN apk upgrade --update && apk add \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-PHP-ext-install -j$(nproc) mcrypt \
&& docker-PHP-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-PHP-ext-install -j$(nproc) gd
我收到错误:
ERROR: unsatisfiable constraints:
libfreetype6-dev (missing):
required by: world[libfreetype6-dev]
libjpeg62-turbo-dev (missing):
required by: world[libjpeg62-turbo-dev]
libpng12-dev (missing):
required by: world[libpng12-dev]
我对高山发行的经验有限.它似乎不是很受欢迎,ergo信息很少或根本没有通过谷歌.