title: How to publish ports in docker files?
body: <p>I need to map the ports on the host to the ports on the container. I can achieve this by running the <code>&quot;docker run&quot;</code> command with the <code>-p</code> option. How do I achieve this through the <code>Dockerfile</code>?
  Using the following gives a <code>&quot;deprecated error&quot;</code></p>
  <pre><code>EXPOSE 80:8080
  </code></pre>
  <p>How else can I make the exposed ports public through the dockerfile?</p>