title: Minimize CentOS-based Docker image
body: <p>I built a PHP-FPM image based on CentOS image</p>
  
  <pre><code>FROM centos:7
  
  RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm &amp;&amp; \
      yum -y install php-fpm php-mysqlnd php-mbstring php-intl php-amqp php-redis php-opcache --enablerepo remi,remi-php56 &amp;&amp; \
      groupadd -g 1000 nginx &amp;&amp; \
      useradd -u 1000 -g 1000 nginx
  
  EXPOSE 9000
  
  CMD ["php-fpm", "-F"]
  </code></pre>
  
  <p>and realized that the final image's quite big (over 350MB). Please tell me where I can remove unwanted files as some Debian-based image on Docker Hub?</p>
  
  <pre><code>rm -rf /var/lib/apt/lists/*
  rm -rf /var/lib/mysql
  </code></pre>
  
  <p>Thank for your help!</p>