title: Docker Compose & Symfony on Ubuntu
body: <p>When running docker-compose up I am getting the following error:</p>
  <pre><code>Service 'web-app' failed to build: The command '/bin/sh -c set -xe &amp;&amp; buildDeps=&quot; $PHP_EXTRA_BUILD_DEPS libcurl4-openssl-dev libedit-dev libsqlite3-dev libssl-dev libxml2-dev xz-utils &quot; &amp;&amp; apt-get update &amp;&amp; apt-get install -y $buildDeps --no-install-recommends &amp;&amp; rm -rf /var/lib/apt/lists/* &amp;&amp; curl -fSL &quot;http://php.net/get/$PHP_FILENAME/from/this/mirror&quot; -o &quot;$PHP_FILENAME&quot; &amp;&amp; echo &quot;$PHP_SHA256 *$PHP_FILENAME&quot; | sha256sum -c - &amp;&amp; curl -fSL &quot;http://php.net/get/$PHP_FILENAME.asc/from/this/mirror&quot; -o &quot;$PHP_FILENAME.asc&quot; &amp;&amp; export GNUPGHOME=&quot;$(mktemp -d)&quot; &amp;&amp; for key in $GPG_KEYS; do gpg --keyserver ha.pool.sks-keyservers.net --recv-keys &quot;$key&quot;; done &amp;&amp; gpg --batch --verify &quot;$PHP_FILENAME.asc&quot; &quot;$PHP_FILENAME&quot; &amp;&amp; rm -r &quot;$GNUPGHOME&quot; &quot;$PHP_FILENAME.asc&quot; &amp;&amp; mkdir -p /usr/src/php &amp;&amp; tar -xf &quot;$PHP_FILENAME&quot; -C /usr/src/php --strip-components=1 &amp;&amp; rm &quot;$PHP_FILENAME&quot; &amp;&amp; cd /usr/src/php &amp;&amp; ./configure --with-config-file-path=&quot;$PHP_INI_DIR&quot; --with-config-file-scan-dir=&quot;$PHP_INI_DIR/conf.d&quot; $PHP_EXTRA_CONFIGURE_ARGS --disable-cgi --enable-mysqlnd --enable-mbstring --with-curl --with-libedit --with-openssl --with-zlib &amp;&amp; make -j&quot;$(nproc)&quot; &amp;&amp; make install &amp;&amp; { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } &amp;&amp; make clean &amp;&amp; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps' returned a non-zero code: 2
  </code></pre>
  <p>Any idea why and how to fix it please?</p>