title: EXPOSE and CMD are ignored when running docker build
body: <p>I'm trying to create a docker image by running docker build .
  The below is codes in my Dockerfile.</p>
  <pre><code>FROM node
  
  WORKDIR /app
  
  COPY . /app
  
  RUN npm install
  
  EXPOSE 80
  
  CMD [&quot;node&quot;, &quot;server.js&quot;]
  </code></pre>
  <p>but I only got the log up to the RUN command:</p>
  <pre><code> =&gt; [internal] load build definition from Dockerfile                                                                   0.1s 
   =&gt; =&gt; transferring dockerfile: 128B                                                                                   0.0s 
   =&gt; [internal] load .dockerignore                                                                                      0.0s 
   =&gt; =&gt; transferring context: 2B                                                                                        0.0s 
   =&gt; [internal] load metadata for docker.io/library/node:latest                                                         0.0s 
   =&gt; [1/4] FROM docker.io/library/node                                                                                  0.0s 
   =&gt; [internal] load build context                                                                                      0.1s 
   =&gt; =&gt; transferring context: 14.62kB                                                                                   0.0s 
   =&gt; CACHED [2/4] WORKDIR /app                                                                                          0.0s 
   =&gt; [3/4] COPY . /app                                                                                                  0.1s 
   =&gt; [4/4] RUN npm install                                                                                              5.0s 
   =&gt; exporting to image                                                                                                 0.3s 
   =&gt; =&gt; exporting layers                                                                                                0.2s 
   =&gt; =&gt; writing image sha256:b7949d3a83e365d0c55690d4fd5c6d9f0e0e20fe88c53aebc3e33b067e600231                           0.0s
  </code></pre>
  <p>I'm expecting both EXPOSE and CMD work as well as the other 4 lines.
  Where should I check in order to do this? Thank you so much for your help!</p>