title: Can not run docker container from compose
body: <p>I can not run a <code>Net Core</code> application in <code>docker-compose</code>  due to this error,while i can start the container from <code>dockerfile</code>.</p>
  
  <pre><code>Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
    https://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409
  </code></pre>
  
  <p>My <code>dockerfile</code> uses the <code>.dll</code> directly (i am directly using the <code>publish</code> directory), so no <code>build</code> ,<code>restore</code> is required.</p>
  
  <pre><code>FROM microsoft/dotnet:aspnetcore
  WORKDIR /app
  COPY ./publish .
  ENTRYPOINT ["dotnet", "Server.dll"]
  EXPOSE 8202
  </code></pre>
  
  <p>I run:<br>
  <code>docker build -t mp . 
  docker run --name mp0 -d myimg</code> and it works.
  <br>However when i am running it from <code>compose</code> :</p>
  
  <pre><code> mp:
          image: mp
          container_name: mp0
          build: ./mpbuild
          ports:
            - 8302:8202
  </code></pre>
  
  <p>I have tried using :<code>aspnetcore</code>,<code>aspnetcore-build</code>,<code>aspnetcore-runtime</code> to no avail .I keep getting asked about the <code>SDK</code>.</p>
  
  <p>P.S: The app is version <code>aspnetcore 2.1</code>.</p>