title: How to serve docfx in docker container?
body: <p>I have tried to build a docker image based on mono to serve a docfx documentation.</p>
  
  <p>Here is my dockerfile code :</p>
  
  <pre><code>FROM mono:latest
  
  #Set environment
  ENV DOCFX_VER 2.40.12
  
  COPY entrypoint.sh /
  
  RUN apt-get update \
   &amp;&amp; apt-get -y install wget zip \
   &amp;&amp; mkdir -p /opt/docfx \
   &amp;&amp; wget -q https://github.com/dotnet/docfx/releases/download/v${DOCFX_VER}/docfx.zip \
   &amp;&amp; sha512sum docfx.zip \
   &amp;&amp; docfx_sha512='11b8bee1079b7a8afcaad0927caaa166553471582d634b30e2392d78c80c012071bded7fd9fa1335782b4194cc42a189737a1985c6dcf2066ce0f872de39b3b6' \
   &amp;&amp; echo "$docfx_sha512  docfx.zip" | sha512sum -c - \
   &amp;&amp; unzip docfx.zip -d /opt/docfx/ \
   &amp;&amp; rm docfx.zip \
   &amp;&amp; apt-get -y purge wget zip \
   &amp;&amp; rm -rf /var/cache/apt/* \
   &amp;&amp; chmod 755 /entrypoint.sh \
   &amp;&amp; adduser \
          --uid 1000 \
          --shell /bin/false \
          --no-create-home \
          --gecos "" \
          --disabled-password \
          --disabled-login \
        docfx \
   &amp;&amp; chmod 755 /entrypoint.sh
  COPY . /doc
  USER docfx
  EXPOSE 8080
  WORKDIR /doc
  ENTRYPOINT [ "/entrypoint.sh" ]
  </code></pre>
  
  <p>The entrypoint.sh is :</p>
  
  <pre><code>#!/bin/sh
  
  set -e
  
  DOCFX_CMD=/opt/docfx/docfx.exe
  
  mono "$DOCFX_CMD" serve -p 8080 . 
  </code></pre>
  
  <p>The build is done and succeed : docker build -t docfxtest .</p>
  
  <p>When I run the image I get the following :</p>
  
  <pre><code>PS E:\Projects\Moon\US-119\docfx&gt; docker logs 67f6e241ff75
  Serving "/doc" on http://localhost:8080
  PS E:\Projects\Moon\US-119\docfx&gt;
  </code></pre>
  
  <p>The container stopped.</p>
  
  <p>I have tested it on docker for windows. As I am still a newbie on docker, I might have missed something. Can someone help me to understand the problem?</p>
  
  <p>My built docker image is availabl there : docker push shoattraceparts/docfxtest:latest</p>
  
  <p>Thanks,</p>