Info:
- OS: Ubuntu 16.04
- Docker version: 20.10.6
- Commit: 63fc1fd
- Project versions:
- Laravel 5.8.33
- Vue 2.6.10
My Laravel docker environment stopped working today.
After several tries I finally deleted all images and tried to rebuild environemt.
I get the same error:
+ apt-get install -yqq apt-utils libzip-dev zip unzip
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && apt-get install -yqq apt-utils libzip-dev zip unzip && docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip && php -m | grep -q 'zip'' returned a non-zero code: 100
Here is the code of my php-fpm Docker file.
Any idea what is wrong?
3
Answers
did you add
RUN apk add –no-cache php
php7-common
php7-fpm
in Dockerfile
you can add:
FROM composer AS composer
COPY . /app
RUN rm composer.lock && composer install
–optimize-autoloader
–no-interaction
–no-progress
–ignore-platform-reqs
RUN apk add –no-cache php
php7-common
php7-fpm
php7-pdo
php7-opcache
php7-zip
try this