title: GD not support JPEG
body: <p>I tried enabling GD JPEG with DOCKER but it doesn't work. This is my dockerfile :</p>
  <pre><code>FROM php:7.4-apache
  COPY ./app/. /var/www/html
  RUN apt-get update &amp;&amp; apt-get install -y  \
      libzip-dev zip \
      zlib1g-dev \
      libjpeg-dev \
      libjpeg62-turbo-dev \
      libfreetype6-dev \
      libpng-dev
  
  
  RUN docker-php-ext-install mysqli &amp;&amp; a2enmod rewrite &amp;&amp; service apache2 restart &amp;&amp; chown -R www-data:www-data /var/www
  
  RUN docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg
  
  RUN docker-php-ext-install zip &amp;&amp; docker-php-ext-install -j$(nproc) gd
  </code></pre>
  <p>But the result remains the same:</p>
  <pre><code># php -r &quot;print_r(gd_info());&quot;
  Array
  (
      [GD Version] =&gt; bundled (2.1.0 compatible)
      [FreeType Support] =&gt;
      [GIF Read Support] =&gt; 1
      [GIF Create Support] =&gt; 1
      [JPEG Support] =&gt;
      [PNG Support] =&gt; 1
      [WBMP Support] =&gt; 1
      [XPM Support] =&gt;
      [XBM Support] =&gt; 1
      [WebP Support] =&gt;
      [BMP Support] =&gt; 1
      [TGA Read Support] =&gt; 1
      [JIS-mapped Japanese Font Support] =&gt;
  )
  </code></pre>
  <p>JPEG Support is still false.</p>