title: docker WordPress image not installing private composer package in web folder
body: <p>I'm trying to build an environnement with wordpress(php7 and apache) - git - composer.</p>
  
  <p>I use Docker desktop on Windows 10</p>
  
  <p>Dockerfile</p>
  
  <pre><code>FROM wordpress:5.3.2-php7.4-apache
  
  ## Install basic things
  RUN apt-get update; \
      apt-get install -y --no-install-recommends \
      gpg-agent \
      libpng-dev \
      apt-utils \
      apt-transport-https \
      software-properties-common \
      openssh-client \
      curl \
      ca-certificates \
      wget \
      git \
      gcc \
      make \
      unzip \
      ; \
      rm -rf /var/lib/apt/lists/*
  
  ENV COMPOSER_ALLOW_SUPERUSER 1
  ENV COMPOSER_HOME /tmp
  ENV COMPOSER_VERSION 1.10.1
  
  RUN set -eux; \
    curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://raw.githubusercontent.com/composer/getcomposer.org/cb19f2aa3aeaa2006c0cd69a7ef011eb31463067/web/installer; \
    php -r " \
      \$signature = '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5'; \
      \$hash = hash('sha384', file_get_contents('/tmp/installer.php')); \
      if (!hash_equals(\$signature, \$hash)) { \
        unlink('/tmp/installer.php'); \
        echo 'Integrity check failed, installer is either corrupt or worse.' . PHP_EOL; \
        exit(1); \
      }"; \
    php /tmp/installer.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION}; \
    composer --ansi --version --no-interaction; \
    rm -f /tmp/installer.php; \
    find /tmp -type d -exec chmod -v 1777 {} +
  </code></pre>
  
  <p>docker-compose.yml</p>
  
  <pre><code>version: '3.3'
  
  services:
     db:
       image: mysql:5.7
       volumes:
         - db_data:/var/lib/mysql
       restart: always
       environment:
         MYSQL_ROOT_PASSWORD: somewordpress
         MYSQL_DATABASE: wordpress
         MYSQL_USER: wordpress
         MYSQL_PASSWORD: wordpress
  
     wordpress:
       depends_on:
         - db
       build: .
       volumes:
         - ${PWD}/wp:/var/www/html
       ports:
         - "32455:80"
         - "32456:443"
       restart: always
       environment:
          WORDPRESS_DB_HOST: db:3306
          WORDPRESS_DB_USER: wordpress
          WORDPRESS_DB_PASSWORD: wordpress
          WORDPRESS_DB_NAME: wordpress
  
     phpmyadmin:
      depends_on:
        - db
      image: phpmyadmin/phpmyadmin
      environment:
        PMA_ARBITRARY: 1
        PMA_HOST: db
        MYSQL_ROOT_PASSWORD: somewordpress
      restart: always
      ports:
      - 8082:80
  
  volumes:
      db_data: {}
  </code></pre>
  
  <p>Docker Partitions</p>
  
  <pre><code>Filesystem     1K-blocks      Used Available Use% Mounted on
  overlay         61255652   4092932  54021388   8% /
  tmpfs              65536         0     65536   0% /dev
  tmpfs             503512         0    503512   0% /sys/fs/cgroup
  /dev/sda1       61255652   4092932  54021388   8% /etc/hosts
  shm                65536         0     65536   0% /dev/shm
  grpcfuse       488384508 399268420  89116088  82% /var/www/html
  tmpfs             503512         0    503512   0% /proc/acpi
  tmpfs             503512         0    503512   0% /sys/firmware
  </code></pre>
  
  <p>When I try to install my private package in the /var/www/html partition, I receive an error from git</p>
  
  <pre><code> [RuntimeException]
    Failed to execute git checkout 'XXXXXXXXXXXXX' -- &amp;&amp; git reset --hard 'XXXXXXXXXXXXX' --
  
    fatal: failed to read object XXXXXXXXXXXXX: Operation not permitted
  </code></pre>
  
  <p>If I try to install the package not in <code>/var/www/html</code> , installation succeed.</p>
  
  <p>Any help would be appreciated to solve this issue.</p>