title: Create an image from a Dockerfile
body: <p>I am looking at a Docerfile like this:</p>
  
  <pre><code>FROM microsoft/aspnetcore:2.0 AS base
  
  # Install the SSHD server
  RUN apt-get update \
    &amp;&amp; apt-get install -y --no-install-recommends openssh-server \
    &amp;&amp; mkdir -p /run/sshd \
    &amp;&amp; echo "root:Docker!" | chpasswd
  #Copy settings file. See elsewhere to find them. 
  COPY sshd_config /etc/ssh/sshd_config
  COPY authorized_keys  root/.ssh/authorized_keys
  
  # Install Visual Studio Remote Debugger
  RUN apt-get install zip unzip
  RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
  
  EXPOSE 2222
  </code></pre>
  
  <p>I am trying to create an image using this dockerfile.  How can I do this? I have read many webpages over the last few hours e.g. this one <a href="https://odewahn.github.io/docker-jumpstart/building-images-with-dockerfiles.html" rel="nofollow noreferrer">https://odewahn.github.io/docker-jumpstart/building-images-with-dockerfiles.html</a>, however they all seem to overcomplicate it as my research is telling me that there is only one command needed.</p>