Reputation: 141
I have a problem when I build lumen on docker, but when the build process is finished there is an error like this :
E: Package 'libpng12-dev' has no installation candidate ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev && rm -rf /var/lib/apt/lists/* && docker-php-ext-configure gd --with-png- dir=/usr --with-jpeg-dir=/usr && docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip' returned a non-zero code: 100
So the build process fails. Has anyone ever had a case like me? I hope someone can provide a solution.
Upvotes: 3
Views: 252
Reputation: 11
try this in your Dockerfile
RUN apk add --no-cache php \
php7-common \
php7-fpm \
php7-pdo \
php7-opcache \
php7-zip \
php7-phar \
php7-iconv \
php7-cli \
php7-curl \
php7-openssl \
php7-mbstring \
php7-tokenizer \
php7-fileinfo \
php7-json \
php7-xml \
php7-xmlwriter \
php7-simplexml \
php7-dom \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-tokenizer \
php7-pecl-redis \
nginx supervisor curl
Upvotes: 0
Reputation: 3621
Try libpng-dev
instead of libpng12-dev
, that one is deprecated and has been removed
Upvotes: 3