Docker: How to install PHP Zip extension via Docker (ext-zip) ?

Software

I have a Dockerfile with this build command:

# Install PHP ext-zip extension
RUN apt-get install -y \
        zlib1g-dev && zip \
  && docker-php-ext-install zip

This ain't working and throws an error while running docker-compose build.

WARNING: Use of bundled libzip is deprecated and will be removed.
configure: WARNING: Some features such as encryption and bzip2 are not available.
configure: WARNING: Use system library and --with-libzip is recommended.

How to install EXT-ZIP PHP Extension via Docker?

PHP Question created: 2022-01-31 11:45 darkOrbit