title: Running a simple webserver in Docker?
body: <p>I am trying to build a simple docker container that serves static html. I have the following Dockerfile:</p>
  
  <pre><code>FROM    ubuntu
  
  # Install python3
  RUN     apt-get update
  RUN     apt-get install -y python3
  
  # Copy html
  ADD static/ /src
  RUN cd /src
  
  # Run http server on port 8080
  EXPOSE  8080
  CMD ["python3", "-m http.server 8080"
  </code></pre>
  
  <p>However when I build + run it I get the following error:</p>
  
  <pre><code>/usr/bin/python3: No module named  http
  </code></pre>
  
  <p>I have tried the same steps via the interactive shell and they work fine, however as soon as I use a Dockerfile it fails.</p>