title: How to download and unzip in Dockerfile
body: <p>So, I have, it works, but I want to change the way to immediately download the file and unpack it:</p>
  
  <pre><code>Dockerfile
  FROM wordpress:fpm
  
  # Copying themes from local  
  COPY  ./wordpress/ /var/www/html/wp-content/themes/wordpress/    
  RUN chmod -R 777 /var/www/html/    
  </code></pre>
  
  <p>How can I immediately download the file from the site and unzip it to the appropriate folder?</p>
  
  <pre><code>docker-compose.yml
  wordpress:
  build: . 
  links:
    - db:mysql
  nginx:
  image: raulr/nginx-wordpress 
  links:
    - wordpress
  ports:
   - "8080:80"
   volumes_from:
   - wordpress
  db:
  image: mariadb
  environment:
  MYSQL_ROOT_PASSWORD: qwerty 
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>#install unzip and wget
  RUN \
  apt-get update &amp;&amp; \
  apt-get install unzip wget -y &amp;&amp; \
  rm -rf /var/lib/apt/lists/*
  
  RUN wget -O /var/www/html/type.zip http://wp-templates.ru/download/2405 \
  &amp;&amp; unzip '/var/www/html/type.zip' -d /var/www/html/wp-content/themes/ &amp;&amp; rm 
  /var/www/html/type.zip || true;
  </code></pre>