title: how to build docker image by docker-compose.yml
body: <p>Here is my <code>docker-compose.yml</code>:</p>
  
  <pre><code>version: '2'
  services:
  web:
    build: .
    context: ./
    dockerfile: Dockerfile
    ports:
      - "8080:8080"
    container_name: demo
    volumes:
      - .:/images
  </code></pre>
  
  <p>I got an error:</p>
  
  <blockquote>
    <p>ERROR: The Compose file './docker-compose.yml' is invalid because:
    Unsupported config option for services.web: 'dockerfile'</p>
  </blockquote>
  
  <p>So I would like to build the container and also run. I will have a few more containers to build and run. Is it possible by docker-compose?     </p>