Docker image build with PHP zip extension shows “bundled libzip is deprecated” warning

前端 未结 6 2045
囚心锁ツ
囚心锁ツ 2020-12-15 15:49

I have a Dockerfile with a build command like this:

#install some base extensions
RUN apt-get install -y \\
        zlib1g-dev \\
        zip \\         


        
6条回答
  •  盖世英雄少女心
    2020-12-15 16:25

    In case you are using 7.4 this worked for me:

    FROM php:7.4-fpm-alpine
    
    RUN apk add --no-cache zip libzip-dev
    RUN docker-php-ext-configure zip
    RUN docker-php-ext-install zip
    RUN docker-php-ext-install pdo pdo_mysql 
    

提交回复
热议问题