Docker : phpize cannot find config.m4

I’m using Laradock on Windows 7. I need to install bz2 extension, so I edited the php-fpm Dockerfile-70 as below.

Added below code –

  • PostgreSQL docker container on Widnows
  • Specifying Docker daemon host in Elastic Beanstalk
  • Error while pulling a container image
  • Manipulating network traffic between containers in Docker in Docker environment without privileged mode?
  • Ctrl-p and Ctrl-n behaving unexpectedly under Docker
  • Why is it needed to set `pam_loginuid` to its `optional` value with docker?
  • ARG INSTALL_BZ2=true
    RUN if [ ${INSTALL_BZ2} = true ]; then \
        # Install the bz2 extension
        pecl install bz2 && \
        docker-php-ext-enable bz2 \
    ;fi
    

    Then when I run docker-compose build php-fpm I get few following error. I did google search and tried suggestions, nothing so far worked.

    running: phpize

    Cannot find config.m4.

    Make sure that you run
    ‘/usr/local/bin/phpize’ in the top level source directory of the
    module

    ERROR: `phpize’ failed

    Please advice on this.

  • How to connect to Oracle Docker image
  • Remotely create a vhost on a docker container running rabbitmq
  • Windows Server 2016 docker image default username/password
  • How is load balancing done in Docker-Swarm mode
  • Docker: One image per user? Or one image for all users?
  • Docker & Angular 2 : binded directory remains empty
  • One Solution collect form web for “Docker : phpize cannot find config.m4”

    Install the bz2 lib and the php extension like this:

    RUN apt-get install -y libbz2-dev \
        && docker-php-ext-install bz2
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.